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.

Github-Pull: #26595
Rebased-From: 7fd125b27d
This commit is contained in:
Andrew Chow
2022-11-28 17:10:44 -05:00
committed by fanquake
parent 50dd8b13df
commit ccc72fecd7
4 changed files with 23 additions and 11 deletions

View File

@@ -406,7 +406,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):