Skip to content

Commit 4da7bfd

Browse files
committed
test: add coverage for unknown address type for createwalletdescriptor
1 parent 2168406 commit 4da7bfd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/functional/wallet_address_types.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,8 @@ def run_test(self):
369369
assert_raises_rpc_error(-5, "Unknown address type ''", self.nodes[3].getnewaddress, None, '')
370370
assert_raises_rpc_error(-5, "Unknown address type ''", self.nodes[3].getrawchangeaddress, '')
371371
assert_raises_rpc_error(-5, "Unknown address type 'bech23'", self.nodes[3].getrawchangeaddress, 'bech23')
372+
if self.options.descriptors:
373+
assert_raises_rpc_error(-5, "Unknown address type 'bech23'", self.nodes[3].createwalletdescriptor, "bech23")
372374

373375
self.log.info("Nodes with changetype=p2sh-segwit never use a P2WPKH change output")
374376
self.test_change_output_type(4, [to_address_bech32_1], 'p2sh-segwit')

0 commit comments

Comments
 (0)