fix: follow-up changes for #17261 of usages ScriptPubKeyMan inside WalletTool

It should be get-or-create instead just-get
This commit is contained in:
Konstantin Akimov 2024-02-29 03:35:48 +07:00
parent 00d4ad5102
commit 7eb9b590de
No known key found for this signature in database
GPG Key ID: 2176C4A5D01EA524

View File

@ -28,7 +28,7 @@ static void WalletCreate(CWallet* wallet_instance)
// generate a new HD seed
wallet_instance->SetupLegacyScriptPubKeyMan();
auto spk_man = wallet_instance->GetLegacyScriptPubKeyMan();
auto spk_man = wallet_instance->GetOrCreateLegacyScriptPubKeyMan();
spk_man->GenerateNewHDChain(/*secureMnemonic=*/"", /*secureMnemonicPassphrase=*/"");
tfm::format(std::cout, "Topping up keypool...\n");