Skip to content

Commit e4fa28a

Browse files
committed
test: fix test interface_bitcoin_cli.py for descriptor wallets
1 parent 695ba2f commit e4fa28a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/functional/interface_bitcoin_cli.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ def run_test(self):
140140

141141
if self.is_wallet_compiled():
142142
self.log.info("Test -getinfo and bitcoin-cli getwalletinfo return expected wallet info")
143+
# Explicitely set the output type in order to have constintent tx vsize / fees
144+
# for both legacy and descriptor wallets (disables the change address type detection algorithm)
145+
self.restart_node(0, extra_args=["-addresstype=bech32", "-changetype=bech32"])
143146
assert_equal(Decimal(cli_get_info['Balance']), BALANCE)
144147
assert 'Balances' not in cli_get_info_string
145148
wallet_info = self.nodes[0].getwalletinfo()

0 commit comments

Comments
 (0)