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

Method KeypoolCountExternalKeys

src/wallet/wallet.cpp:2450–2465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2448}
2449
2450size_t CWallet::KeypoolCountExternalKeys() const
2451{
2452 AssertLockHeld(cs_wallet);
2453
2454 auto legacy_spk_man = GetLegacyScriptPubKeyMan();
2455 if (legacy_spk_man) {
2456 return legacy_spk_man->KeypoolCountExternalKeys();
2457 }
2458
2459 unsigned int count = 0;
2460 for (auto spk_man : m_external_spk_managers) {
2461 count += spk_man.second->GetKeyPoolSize();
2462 }
2463
2464 return count;
2465}
2466
2467unsigned int CWallet::GetKeyPoolSize() const
2468{

Callers 1

getwalletinfoFunction · 0.45

Calls 1

GetKeyPoolSizeMethod · 0.45

Tested by

no test coverage detected