mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 02:33:24 -03: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
38277a9f3d
commit
d13c542440
1 changed files with 1 additions and 1 deletions
|
@ -4678,7 +4678,7 @@ util::Result<MigrationResult> MigrateLegacyToDescriptor(std::shared_ptr<CWallet>
|
|||
success = reload_wallet(res.solvables_wallet);
|
||||
}
|
||||
}
|
||||
if (!success) {
|
||||
if (!success && !in_memory) {
|
||||
// Migration failed, cleanup
|
||||
// Copy the backup to the actual wallet dir
|
||||
fs::path temp_backup_location = fsbridge::AbsPathJoin(GetWalletDir(), backup_filename);
|
||||
|
|
Loading…
Add table
Reference in a new issue