Skip to content

Commit 88b0647

Browse files
committed
wallet: Always write last hardened cache flag in migrated wallets
1 parent 8a08eef commit 88b0647

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet/wallet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3851,7 +3851,7 @@ util::Result<void> CWallet::ApplyMigrationData(WalletBatch& local_wallet_batch,
38513851
m_internal_spk_managers.clear();
38523852

38533853
// Setup new descriptors (only if we are migrating any key material)
3854-
SetWalletFlagWithDB(local_wallet_batch, WALLET_FLAG_DESCRIPTORS);
3854+
SetWalletFlagWithDB(local_wallet_batch, WALLET_FLAG_DESCRIPTORS | WALLET_FLAG_LAST_HARDENED_XPUB_CACHED);
38553855
if (has_spendable_material && !IsWalletFlagSet(WALLET_FLAG_DISABLE_PRIVATE_KEYS)) {
38563856
// Use the existing master key if we have it
38573857
if (data.master_key.key.IsValid()) {

0 commit comments

Comments
 (0)