diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2019-05-08 14:03:29 -0700 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2019-08-06 17:11:12 -0700 |
commit | 26d3fad1093dfc697048313be7a96c9adf723654 (patch) | |
tree | c3b4b85506298304ff339ba92f518353a177fa63 /test | |
parent | 104b3a5069c937383e6f88f2f3fb804ef61b208f (diff) |
Add unmodified-but-with-checksum to getdescriptorinfo
Diffstat (limited to 'test')
-rwxr-xr-x | test/functional/wallet_address_types.py | 4 |
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 |