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:
brunoerg 2024-12-10 19:02:20 -03:00
parent 38277a9f3d
commit d13c542440

View file

@ -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);