diff options
author | Andrew Chow <github@achow101.com> | 2023-07-03 21:50:20 -0400 |
---|---|---|
committer | Andrew Chow <github@achow101.com> | 2023-08-23 16:49:41 -0400 |
commit | f158573be12746991b75587cc9e41a74a5e986eb (patch) | |
tree | d257e76c675fe6c325070dc7b6f13b92d79e2060 /test/functional | |
parent | f41215c3f08f99d1bfa524f2da8055b6a4458bbb (diff) |
test: Add 0.21 tr() incompatibility test
Diffstat (limited to 'test/functional')
-rwxr-xr-x | test/functional/wallet_backwards_compatibility.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/wallet_backwards_compatibility.py b/test/functional/wallet_backwards_compatibility.py index 658c0e7480..0512fe2924 100755 --- a/test/functional/wallet_backwards_compatibility.py +++ b/test/functional/wallet_backwards_compatibility.py @@ -131,6 +131,7 @@ class BackwardsCompatibilityTest(BitcoinTestFramework): def run_test(self): node_miner = self.nodes[0] node_master = self.nodes[1] + node_v21 = self.nodes[self.num_nodes - 6] node_v17 = self.nodes[self.num_nodes - 2] node_v16 = self.nodes[self.num_nodes - 1] @@ -277,6 +278,11 @@ class BackwardsCompatibilityTest(BitcoinTestFramework): else: node_v16.assert_start_raises_init_error([f"-wallet={wallet_name}"], f"Error: Error loading {wallet_name}: Wallet requires newer version of Bitcoin Core") + # When descriptors are enabled, w1 cannot be opened by 0.21 since it contains a taproot descriptor + if self.options.descriptors: + self.log.info("Test that 0.21 cannot open wallet containing tr() descriptors") + assert_raises_rpc_error(-1, "map::at", node_v21.loadwallet, "w1") + # Create upgrade wallet in v0.16 self.restart_node(node_v16.index, extra_args=["-wallet=u1_v16"]) wallet = node_v16.get_wallet_rpc("u1_v16") |