mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-12 18:44:59 +01:00
wallet: skip backup restoration when using in-memory dbs
By using in-memory databases, we do not have dbs file to delete and restore.
This commit is contained in:
parent
cccac21b77
commit
e449f9cd06
1 changed files with 1 additions and 1 deletions
|
@ -4552,7 +4552,7 @@ util::Result<MigrationResult> MigrateLegacyToDescriptor(std::shared_ptr<CWallet>
|
||||||
success = reload_wallet(res.solvables_wallet);
|
success = reload_wallet(res.solvables_wallet);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!success) {
|
if (!success && !in_memory) {
|
||||||
// Migration failed, cleanup
|
// Migration failed, cleanup
|
||||||
// Before deleting the wallet's directory, copy the backup file to the top-level wallets dir
|
// Before deleting the wallet's directory, copy the backup file to the top-level wallets dir
|
||||||
fs::path temp_backup_location = fsbridge::AbsPathJoin(GetWalletDir(), backup_filename);
|
fs::path temp_backup_location = fsbridge::AbsPathJoin(GetWalletDir(), backup_filename);
|
||||||
|
|
Loading…
Add table
Reference in a new issue