Skip to content

Commit e52498b

Browse files
committed
chore: add todoes to UpgradeToHD function
1 parent 0d12ea9 commit e52498b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/wallet/wallet.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4930,8 +4930,10 @@ bool CWallet::UpgradeToHD(const SecureString& secureMnemonic, const SecureString
49304930
WalletLogPrintf("Upgrading wallet to HD\n");
49314931
SetMinVersion(FEATURE_HD);
49324932

4933+
// TODO: replace to GetLegacyScriptPubKeyMan() when `sethdseed` is backported
49334934
auto spk_man = GetOrCreateLegacyScriptPubKeyMan();
49344935
bool prev_encrypted = IsCrypted();
4936+
// TODO: unify encrypted and plain chains usages here
49354937
if (prev_encrypted) {
49364938
if (!GenerateNewHDChainEncrypted(secureMnemonic, secureMnemonicPassphrase, secureWalletPassphrase)) {
49374939
error = Untranslated("Failed to generate encrypted HD wallet");

0 commit comments

Comments
 (0)