MCPcopy Create free account
hub / github.com/ElementsProject/elements / SetupGeneration

Method SetupGeneration

src/wallet/scriptpubkeyman.cpp:441–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

439}
440
441bool LegacyScriptPubKeyMan::SetupGeneration(bool force)
442{
443 if ((CanGenerateKeys() && !force) || m_storage.IsLocked()) {
444 return false;
445 }
446
447 SetHDSeed(GenerateNewSeed());
448 if (!NewKeyPool()) {
449 return false;
450 }
451 return true;
452}
453
454bool LegacyScriptPubKeyMan::IsHDEnabled() const
455{

Callers 4

WalletCreateFunction · 0.45
CreateWalletFunction · 0.45
EncryptWalletMethod · 0.45
CreateMethod · 0.45

Calls 1

IsLockedMethod · 0.80

Tested by

no test coverage detected