Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.cpp
Show First 20 Lines • Show All 683 Lines • ▼ Show 20 Lines | if (!crypter.Encrypt(_vMasterKey, kMasterKey.vchCryptedKey)) { | ||||
} | } | ||||
delete encrypted_batch; | delete encrypted_batch; | ||||
encrypted_batch = nullptr; | encrypted_batch = nullptr; | ||||
Lock(); | Lock(); | ||||
Unlock(strWalletPassphrase); | Unlock(strWalletPassphrase); | ||||
// If we are using descriptors, make new descriptors with a new seed | |||||
if (IsWalletFlagSet(WALLET_FLAG_DESCRIPTORS) && | |||||
!IsWalletFlagSet(WALLET_FLAG_BLANK_WALLET)) { | |||||
SetupDescriptorScriptPubKeyMans(); | |||||
} else if (auto spk_man = GetLegacyScriptPubKeyMan()) { | |||||
// if we are using HD, replace the HD seed with a new one | // if we are using HD, replace the HD seed with a new one | ||||
if (auto spk_man = GetLegacyScriptPubKeyMan()) { | |||||
if (spk_man->IsHDEnabled()) { | if (spk_man->IsHDEnabled()) { | ||||
if (!spk_man->SetupGeneration(true)) { | if (!spk_man->SetupGeneration(true)) { | ||||
return false; | return false; | ||||
} | } | ||||
} | } | ||||
} | } | ||||
Lock(); | Lock(); | ||||
▲ Show 20 Lines • Show All 4,231 Lines • Show Last 20 Lines |