Changeset View
Changeset View
Standalone View
Standalone View
test/functional/wallet_importmulti.py
Show First 20 Lines • Show All 471 Lines • ▼ Show 20 Lines | def run_test(self): | ||||
key = get_key(self.nodes[0]) | key = get_key(self.nodes[0]) | ||||
self.log.info( | self.log.info( | ||||
"Should fail to import a p2pkh address from descriptor with no checksum") | "Should fail to import a p2pkh address from descriptor with no checksum") | ||||
self.test_importmulti({"desc": "pkh(" + key.pubkey + ")", | self.test_importmulti({"desc": "pkh(" + key.pubkey + ")", | ||||
"timestamp": "now", | "timestamp": "now", | ||||
"label": "Descriptor import test"}, | "label": "Descriptor import test"}, | ||||
success=False, | success=False, | ||||
error_code=-5, | error_code=-5, | ||||
error_message='Descriptor is invalid') | error_message='Descriptor is invalid, Missing checksum') | ||||
xpriv = "tprv8ZgxMBicQKsPeuVhWwi6wuMQGfPKi9Li5GtX35jVNknACgqe3CY4g5xgkfDDJcmtF7o1QnxWDRYw4H5P26PXq7sbcUkEqeR4fg3Kxp2tigg" | xpriv = "tprv8ZgxMBicQKsPeuVhWwi6wuMQGfPKi9Li5GtX35jVNknACgqe3CY4g5xgkfDDJcmtF7o1QnxWDRYw4H5P26PXq7sbcUkEqeR4fg3Kxp2tigg" | ||||
# hdkeypath=m/0'/0'/0' and 1' | # hdkeypath=m/0'/0'/0' and 1' | ||||
addresses = [ | addresses = [ | ||||
"2N7yv4p8G8yEaPddJxY41kPihnWvs39qCMf", | "2N7yv4p8G8yEaPddJxY41kPihnWvs39qCMf", | ||||
"2MsHxyb2JS3pAySeNUsJ7mNnurtpeenDzLA"] | "2MsHxyb2JS3pAySeNUsJ7mNnurtpeenDzLA"] | ||||
desc = "sh(pkh(" + xpriv + "/0'/0'/*'" + "))" | desc = "sh(pkh(" + xpriv + "/0'/0'/*'" + "))" | ||||
self.test_importmulti({"desc": descsum_create(desc), "timestamp": "now", "range": -1}, | self.test_importmulti({"desc": descsum_create(desc), "timestamp": "now", "range": -1}, | ||||
▲ Show 20 Lines • Show All 253 Lines • Show Last 20 Lines |