aboutsummaryrefslogtreecommitdiff
path: root/test/functional/interface_bitcoin_cli.py
diff options
context:
space:
mode:
authorSebastian Falbesoner <sebastian.falbesoner@gmail.com>2021-12-06 19:57:45 +0100
committerSebastian Falbesoner <sebastian.falbesoner@gmail.com>2021-12-06 20:13:06 +0100
commite4fa28a3228619b58d0177a28dc016aac8a87afe (patch)
tree41e7a83ef975ea3c8d00e9258fca27c781589b94 /test/functional/interface_bitcoin_cli.py
parent695ba2fe5446c633c33959786145b6f2efcaa1f1 (diff)
downloadbitcoin-e4fa28a3228619b58d0177a28dc016aac8a87afe.tar.xz
test: fix test interface_bitcoin_cli.py for descriptor wallets
Diffstat (limited to 'test/functional/interface_bitcoin_cli.py')
-rwxr-xr-xtest/functional/interface_bitcoin_cli.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/functional/interface_bitcoin_cli.py b/test/functional/interface_bitcoin_cli.py
index 6076dceeaf..8a1edb7eb2 100755
--- a/test/functional/interface_bitcoin_cli.py
+++ b/test/functional/interface_bitcoin_cli.py
@@ -140,6 +140,9 @@ class TestBitcoinCli(BitcoinTestFramework):
if self.is_wallet_compiled():
self.log.info("Test -getinfo and bitcoin-cli getwalletinfo return expected wallet info")
+ # Explicitely set the output type in order to have constintent tx vsize / fees
+ # for both legacy and descriptor wallets (disables the change address type detection algorithm)
+ self.restart_node(0, extra_args=["-addresstype=bech32", "-changetype=bech32"])
assert_equal(Decimal(cli_get_info['Balance']), BALANCE)
assert 'Balances' not in cli_get_info_string
wallet_info = self.nodes[0].getwalletinfo()