Skip to content

Commit

Permalink
fix: cache descriptors of wallet unlock - missing changes from bitcoi…
Browse files Browse the repository at this point in the history
  • Loading branch information
knst committed Jan 6, 2025
1 parent a5787c9 commit b7500c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5648,6 +5648,8 @@ bool CWallet::Unlock(const SecureString& strWalletPassphrase, bool fForMixingOnl
if (Unlock(_vMasterKey, fForMixingOnly, accept_no_keys)) {
// Now that we've unlocked, upgrade the key metadata
UpgradeKeyMetadata();
// Now that we've unlocked, upgrade the descriptor cache
UpgradeDescriptorCache();
if(nWalletBackups == -2) {
TopUpKeyPool();
WalletLogPrintf("Keypool replenished, re-initializing automatic backups.\n");
Expand Down

0 comments on commit b7500c4

Please sign in to comment.