mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
fix: isHDenabled is true only when chain is generated; before that's always false
This commit is contained in:
parent
ce992f7a3a
commit
31040abae6
@ -29,10 +29,7 @@ static void WalletCreate(CWallet* wallet_instance)
|
||||
// generate a new HD seed
|
||||
wallet_instance->SetupLegacyScriptPubKeyMan();
|
||||
auto spk_man = wallet_instance->GetLegacyScriptPubKeyMan();
|
||||
// NOTE: drop this condition after removing option to create non-HD wallets
|
||||
if (spk_man->IsHDEnabled()) {
|
||||
spk_man->GenerateNewHDChain(/*secureMnemonic=*/"", /*secureMnemonicPassphrase=*/"");
|
||||
}
|
||||
spk_man->GenerateNewHDChain(/*secureMnemonic=*/"", /*secureMnemonicPassphrase=*/"");
|
||||
|
||||
tfm::format(std::cout, "Topping up keypool...\n");
|
||||
wallet_instance->TopUpKeyPool();
|
||||
|
@ -208,7 +208,7 @@ class ToolWalletTest(BitcoinTestFramework):
|
||||
Descriptors: no
|
||||
Encrypted: no
|
||||
HD (hd seed available): no
|
||||
Keypool Size: 1000
|
||||
Keypool Size: 2000
|
||||
Transactions: 0
|
||||
Address Book: 0
|
||||
''')
|
||||
|
Loading…
Reference in New Issue
Block a user