Skip to content

Commit

Permalink
wallet: skip backup restoration when using in-memory dbs
Browse files Browse the repository at this point in the history
By using in-memory databases, we do not have dbs file to delete
and restore.
  • Loading branch information
brunoerg committed Dec 10, 2024
1 parent 43d101f commit 248ef32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 248ef32

Please sign in to comment.