mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
wallet: make KeypoolCountExternalKeys() const
This method returns the sum of the key pool sizes. It does no modification.
This commit is contained in:
@@ -459,7 +459,7 @@ int64_t LegacyScriptPubKeyMan::GetOldestKeyPoolTime()
|
||||
return oldestKey;
|
||||
}
|
||||
|
||||
size_t LegacyScriptPubKeyMan::KeypoolCountExternalKeys()
|
||||
size_t LegacyScriptPubKeyMan::KeypoolCountExternalKeys() const
|
||||
{
|
||||
LOCK(cs_KeyStore);
|
||||
return setExternalKeyPool.size() + set_pre_split_keypool.size();
|
||||
|
||||
Reference in New Issue
Block a user