Skip to content

Commit

Permalink
Update wallet_labels.py to not require descriptors=False
Browse files Browse the repository at this point in the history
  • Loading branch information
achow101 committed Nov 1, 2020
1 parent 242aed7 commit 9a4c631
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/functional/wallet_labels.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def run_test(self):
change_label(node, labels[2].addresses[0], labels[2], labels[2])

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')
BECH32_VALID = {
'✔️_VER15_PROG40': 'bcrt10qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqn2cjv3',
Expand All @@ -156,7 +156,7 @@ def run_test(self):
ad = BECH32_INVALID[l]
assert_raises_rpc_error(
-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),
)

Expand Down

0 comments on commit 9a4c631

Please sign in to comment.