From 34d03a102a4b89c631679c3932bfc9f03d223507 Mon Sep 17 00:00:00 2001 From: brunoerg Date: Tue, 10 Dec 2024 19:02:20 -0300 Subject: [PATCH] wallet: skip backup restoration when using in-memory dbs By using in-memory databases, we do not have dbs file to delete and restore. --- src/wallet/wallet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index ede66910e00..37a873f70f2 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -4552,7 +4552,7 @@ util::Result MigrateLegacyToDescriptor(std::shared_ptr 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);