diff options
author | Andrew Chow <github@achow101.com> | 2023-10-06 15:58:13 -0400 |
---|---|---|
committer | Andrew Chow <github@achow101.com> | 2023-10-19 18:06:43 -0400 |
commit | d616d30ea5fdfb897f8375ffd8b9f4536ae7835b (patch) | |
tree | b7d9b2b4f37efdc986357439739b59c5779fbaaa /test/functional | |
parent | 118f2d7d70b584eee7b89e58b5cd2d61c59a9bbf (diff) | |
download | bitcoin-d616d30ea5fdfb897f8375ffd8b9f4536ae7835b.tar.xz |
wallet: Reload watchonly and solvables wallets after migration
When migrating, create the watchonly and solvables wallets without a
context. Then unload and reload them after migration completes, as we do
for the actual wallet.
There is also additional handling for a failed reload.
Diffstat (limited to 'test/functional')
-rwxr-xr-x | test/functional/wallet_migration.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/wallet_migration.py b/test/functional/wallet_migration.py index 33ab8bf3f8..ad8dbe78ed 100755 --- a/test/functional/wallet_migration.py +++ b/test/functional/wallet_migration.py @@ -848,7 +848,7 @@ class WalletMigrationTest(BitcoinTestFramework): wallet.addmultisigaddress(2, [wallet.getnewaddress(), get_generate_key().pubkey]) wallet.importaddress(get_generate_key().p2pkh_addr) - assert_raises_rpc_error(-4, "Failed to create new watchonly wallet", wallet.migratewallet) + assert_raises_rpc_error(-4, "Failed to create database", wallet.migratewallet) assert "failed" in self.nodes[0].listwallets() assert "failed_watchonly" not in self.nodes[0].listwallets() |