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 82ae02b commit 1cb42b2Copy full SHA for 1cb42b2
src/wallet/wallet.cpp
@@ -592,8 +592,11 @@ bool CWallet::EncryptWallet(const SecureString& strWalletPassphrase)
592
Lock();
593
Unlock(strWalletPassphrase);
594
595
- // if we are using HD, replace the HD seed with a new one
596
- if (auto spk_man = GetLegacyScriptPubKeyMan()) {
+ // If we are using descriptors, make new descriptors with a new seed
+ if (IsWalletFlagSet(WALLET_FLAG_DESCRIPTORS) && !IsWalletFlagSet(WALLET_FLAG_BLANK_WALLET)) {
597
+ SetupDescriptorScriptPubKeyMans();
598
+ } else if (auto spk_man = GetLegacyScriptPubKeyMan()) {
599
+ // if we are using HD, replace the HD seed with a new one
600
if (spk_man->IsHDEnabled()) {
601
if (!spk_man->SetupGeneration(true)) {
602
return false;
0 commit comments