wallet: Always write last hardened cache flag in migrated wallets
This commit is contained in:
1 parent
8a08eef645
commit
88b0647f02
1 file changed
+1
-1
@@ -3851,7 +3851,7 @@ util::Result<void> CWallet::ApplyMigrationData(WalletBatch& local_wallet_batch,
|
||||
m_internal_spk_managers.clear();
|
||||
|
||||
// Setup new descriptors (only if we are migrating any key material)
|
||||
SetWalletFlagWithDB(local_wallet_batch, WALLET_FLAG_DESCRIPTORS);
|
||||
SetWalletFlagWithDB(local_wallet_batch, WALLET_FLAG_DESCRIPTORS | WALLET_FLAG_LAST_HARDENED_XPUB_CACHED);
|
||||
if (has_spendable_material && !IsWalletFlagSet(WALLET_FLAG_DISABLE_PRIVATE_KEYS)) {
|
||||
// Use the existing master key if we have it
|
||||
if (data.master_key.key.IsValid()) {
|
||||
|
||||
Reference in new issue
Block a user