diff options
author | furszy <matiasfurszyfer@protonmail.com> | 2023-01-17 11:58:23 -0300 |
---|---|---|
committer | furszy <matiasfurszyfer@protonmail.com> | 2023-01-18 13:47:31 -0300 |
commit | 6d31900e52efa2c7c7a220d8c8ad6353c412a2aa (patch) | |
tree | 56e26bd8f5f8e818a2bff4651b1e600b10a19938 /test/functional/wallet_migration.py | |
parent | 635f1900d048e41d18cc1df7e8305a5f397c87a3 (diff) | |
download | bitcoin-6d31900e52efa2c7c7a220d8c8ad6353c412a2aa.tar.xz |
wallet: migrate wallet, exit early if no legacy data exist
otherwise the process will create a backup file then return
an error when notices that the db is already running sqlite.
Diffstat (limited to 'test/functional/wallet_migration.py')
-rwxr-xr-x | test/functional/wallet_migration.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/wallet_migration.py b/test/functional/wallet_migration.py index 688ac98617..72c5fe7b84 100755 --- a/test/functional/wallet_migration.py +++ b/test/functional/wallet_migration.py @@ -163,6 +163,10 @@ class WalletMigrationTest(BitcoinTestFramework): assert_equal(basic2.getbalance(), basic2_balance) self.assert_list_txs_equal(basic2.listtransactions(), basic2_txs) + # Now test migration on a descriptor wallet + self.log.info("Test \"nothing to migrate\" when the user tries to migrate a wallet with no legacy data") + assert_raises_rpc_error(-4, "Error: This wallet is already a descriptor wallet", basic2.migratewallet) + def test_multisig(self): default = self.nodes[0].get_wallet_rpc(self.default_wallet_name) |