aboutsummaryrefslogtreecommitdiff
path: root/test/functional/wallet_address_types.py
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2019-05-08 14:03:29 -0700
committerPieter Wuille <pieter.wuille@gmail.com>2019-08-06 17:11:12 -0700
commit26d3fad1093dfc697048313be7a96c9adf723654 (patch)
treec3b4b85506298304ff339ba92f518353a177fa63 /test/functional/wallet_address_types.py
parent104b3a5069c937383e6f88f2f3fb804ef61b208f (diff)
downloadbitcoin-26d3fad1093dfc697048313be7a96c9adf723654.tar.xz
Add unmodified-but-with-checksum to getdescriptorinfo
Diffstat (limited to 'test/functional/wallet_address_types.py')
-rwxr-xr-xtest/functional/wallet_address_types.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/wallet_address_types.py b/test/functional/wallet_address_types.py
index a40613dfc7..4e4ed8f26b 100755
--- a/test/functional/wallet_address_types.py
+++ b/test/functional/wallet_address_types.py
@@ -175,6 +175,10 @@ class AddressTypeTest(BitcoinTestFramework):
assert info['desc'] == descsum_create(info['desc'][:-9])
# Verify that stripping the checksum and feeding it to getdescriptorinfo roundtrips
assert info['desc'] == self.nodes[0].getdescriptorinfo(info['desc'][:-9])['descriptor']
+ assert_equal(info['desc'][-8:], self.nodes[0].getdescriptorinfo(info['desc'][:-9])['checksum'])
+ # Verify that keeping the checksum and feeding it to getdescriptorinfo roundtrips
+ assert info['desc'] == self.nodes[0].getdescriptorinfo(info['desc'])['descriptor']
+ assert_equal(info['desc'][-8:], self.nodes[0].getdescriptorinfo(info['desc'])['checksum'])
if not multisig and typ == 'legacy':
# P2PKH