From 4da7bfdcc902f22239e55cd9b90abf36b29edfde Mon Sep 17 00:00:00 2001 From: brunoerg Date: Fri, 10 Jan 2025 10:54:37 -0300 Subject: [PATCH] test: add coverage for unknown address type for `createwalletdescriptor` --- test/functional/wallet_address_types.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/functional/wallet_address_types.py b/test/functional/wallet_address_types.py index e326d3e89e..f2e1850e9d 100755 --- a/test/functional/wallet_address_types.py +++ b/test/functional/wallet_address_types.py @@ -369,6 +369,8 @@ class AddressTypeTest(BitcoinTestFramework): assert_raises_rpc_error(-5, "Unknown address type ''", self.nodes[3].getnewaddress, None, '') assert_raises_rpc_error(-5, "Unknown address type ''", self.nodes[3].getrawchangeaddress, '') assert_raises_rpc_error(-5, "Unknown address type 'bech23'", self.nodes[3].getrawchangeaddress, 'bech23') + if self.options.descriptors: + assert_raises_rpc_error(-5, "Unknown address type 'bech23'", self.nodes[3].createwalletdescriptor, "bech23") self.log.info("Nodes with changetype=p2sh-segwit never use a P2WPKH change output") self.test_change_output_type(4, [to_address_bech32_1], 'p2sh-segwit')