Update wallet_labels.py to not require descriptors=False
This commit is contained in:
1 parent
242aed7cc1
commit
9a4c631e1c
1 file changed
+2
-2
@@ -135,7 +135,7 @@ class WalletLabelsTest(BitcoinTestFramework):
|
|||||||
change_label(node, labels[2].addresses[0], labels[2], labels[2])
|
change_label(node, labels[2].addresses[0], labels[2], labels[2])
|
||||||
|
|
||||||
self.log.info('Check watchonly labels')
|
self.log.info('Check watchonly labels')
|
||||||
node.createwallet(wallet_name='watch_only', disable_private_keys=True, descriptors=False)
|
node.createwallet(wallet_name='watch_only', disable_private_keys=True)
|
||||||
wallet_watch_only = node.get_wallet_rpc('watch_only')
|
wallet_watch_only = node.get_wallet_rpc('watch_only')
|
||||||
BECH32_VALID = {
|
BECH32_VALID = {
|
||||||
'✔️_VER15_PROG40': 'bcrt10qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqn2cjv3',
|
'✔️_VER15_PROG40': 'bcrt10qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqn2cjv3',
|
||||||
@@ -156,7 +156,7 @@ class WalletLabelsTest(BitcoinTestFramework):
|
|||||||
ad = BECH32_INVALID[l]
|
ad = BECH32_INVALID[l]
|
||||||
assert_raises_rpc_error(
|
assert_raises_rpc_error(
|
||||||
-5,
|
-5,
|
||||||
"Invalid Bitcoin address or script",
|
"Address is not valid" if self.options.descriptors else "Invalid Bitcoin address or script",
|
||||||
lambda: wallet_watch_only.importaddress(label=l, rescan=False, address=ad),
|
lambda: wallet_watch_only.importaddress(label=l, rescan=False, address=ad),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user