mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
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:
parent
00d4ad5102
commit
7eb9b590de
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user