| 2448 | } |
| 2449 | |
| 2450 | size_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 | |
| 2467 | unsigned int CWallet::GetKeyPoolSize() const |
| 2468 | { |
no test coverage detected