mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-26 03:03:22 -03:00
test: add coverage for unknown address type for createwalletdescriptor
This commit is contained in:
parent
2168406597
commit
4da7bfdcc9
1 changed files with 2 additions and 0 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Reference in a new issue