From e449f9cd06be17e5baaa17d00fe2b7ba08cf752d 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 ef68d21cd8e..203d61df61a 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 // 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);