wallet: Be able to unlock the wallet for migration

Since migration reloads the wallet, the wallet will always be locked
unless the passphrase is given. migratewallet can now take the
passphrase in order to unlock the wallet for migration.
This commit is contained in:
Andrew Chow
2022-11-28 17:10:44 -05:00
parent 6bdbc5ff59
commit 7fd125b27d
4 changed files with 23 additions and 11 deletions

View File

@@ -403,7 +403,6 @@ class WalletMigrationTest(BitcoinTestFramework):
wallet.encryptwallet("pass")
assert_raises_rpc_error(-15, "Error: migratewallet on encrypted wallets is currently unsupported.", wallet.migratewallet)
# TODO: Fix migratewallet so that we can actually migrate encrypted wallets
def run_test(self):