aboutsummaryrefslogtreecommitdiff
path: root/test/functional/wallet_backwards_compatibility.py
diff options
context:
space:
mode:
authorAndrew Chow <github@achow101.com>2023-06-12 17:47:58 -0400
committerAndrew Chow <github@achow101.com>2023-06-23 16:37:22 -0400
commit8fbb6e99bfc85a1b9003cae402a7335843a86abd (patch)
tree39f1540ddfa664385c56a8e8d5e981c58673e212 /test/functional/wallet_backwards_compatibility.py
parentc92fd638860c5b4477851fb3790bc8068f808d3e (diff)
downloadbitcoin-8fbb6e99bfc85a1b9003cae402a7335843a86abd.tar.xz
wallet: Give deprecation warning when loading a legacy wallet
Diffstat (limited to 'test/functional/wallet_backwards_compatibility.py')
-rwxr-xr-xtest/functional/wallet_backwards_compatibility.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/functional/wallet_backwards_compatibility.py b/test/functional/wallet_backwards_compatibility.py
index 5088e11eda..cc76d2f136 100755
--- a/test/functional/wallet_backwards_compatibility.py
+++ b/test/functional/wallet_backwards_compatibility.py
@@ -264,10 +264,11 @@ class BackwardsCompatibilityTest(BitcoinTestFramework):
os.path.join(node_master_wallets_dir, "u1_v16")
)
load_res = node_master.loadwallet("u1_v16")
- # Make sure this wallet opens without warnings. See https://github.com/bitcoin/bitcoin/pull/19054
+ # Make sure this wallet opens with only the migration warning. See https://github.com/bitcoin/bitcoin/pull/19054
if int(node_master.getnetworkinfo()["version"]) >= 249900:
# loadwallet#warnings (added in v25) -- only present if there is a warning
- assert "warnings" not in load_res
+ # Legacy wallets will have only a deprecation warning
+ assert_equal(load_res["warnings"], ["Wallet loaded successfully. The legacy wallet type is being deprecated and support for creating and opening legacy wallets will be removed in the future. Legacy wallets can be migrated to a descriptor wallet with migratewallet."])
else:
# loadwallet#warning (deprecated in v25) -- always present, but empty string if no warning
assert_equal(load_res["warning"], '')