We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4baa162 commit 8c127ffCopy full SHA for 8c127ff
src/wallet/wallet.cpp
@@ -4246,8 +4246,11 @@ util::Result<MigrationResult> MigrateLegacyToDescriptor(const std::string& walle
4246
// First change to using SQLite
4247
if (!local_wallet->MigrateToSQLite(error)) return util::Error{error};
4248
4249
- // Do the migration, and cleanup if it fails
4250
- success = DoMigration(*local_wallet, context, error, res);
+ // Do the migration of keys and scripts for non-blank wallets, and cleanup if it fails
+ success = local_wallet->IsWalletFlagSet(WALLET_FLAG_BLANK_WALLET);
4251
+ if (!success) {
4252
+ success = DoMigration(*local_wallet, context, error, res);
4253
+ }
4254
}
4255
4256
// In case of reloading failure, we need to remember the wallet dirs to remove
0 commit comments