mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-01 08:44:02 +02:00
Add unmodified-but-with-checksum to getdescriptorinfo
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user