Skip to content

Commit 9a4c631

Browse files
committed
Update wallet_labels.py to not require descriptors=False
1 parent 242aed7 commit 9a4c631

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/functional/wallet_labels.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def run_test(self):
135135
change_label(node, labels[2].addresses[0], labels[2], labels[2])
136136

137137
self.log.info('Check watchonly labels')
138-
node.createwallet(wallet_name='watch_only', disable_private_keys=True, descriptors=False)
138+
node.createwallet(wallet_name='watch_only', disable_private_keys=True)
139139
wallet_watch_only = node.get_wallet_rpc('watch_only')
140140
BECH32_VALID = {
141141
'✔️_VER15_PROG40': 'bcrt10qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqn2cjv3',
@@ -156,7 +156,7 @@ def run_test(self):
156156
ad = BECH32_INVALID[l]
157157
assert_raises_rpc_error(
158158
-5,
159-
"Invalid Bitcoin address or script",
159+
"Address is not valid" if self.options.descriptors else "Invalid Bitcoin address or script",
160160
lambda: wallet_watch_only.importaddress(label=l, rescan=False, address=ad),
161161
)
162162

0 commit comments

Comments
 (0)