aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/scriptpubkeyman.cpp
diff options
context:
space:
mode:
authorKarl-Johan Alm <[email protected]>2020-03-02 16:33:45 +0900
committerKarl-Johan Alm <[email protected]>2020-03-02 17:26:30 +0900
commit037fa770eb1ed5152b3ef2c5d3fb2a812d3ef944 (patch)
treee6ebc42e82db1ecbcd4eff9feb3091e91cdf527c /src/wallet/scriptpubkeyman.cpp
parentwallet: make CanGenerateKeys() const (diff)
downloaddiscoin-037fa770eb1ed5152b3ef2c5d3fb2a812d3ef944.tar.xz
discoin-037fa770eb1ed5152b3ef2c5d3fb2a812d3ef944.zip
wallet: make KeypoolCountExternalKeys() const
This method returns the sum of the key pool sizes. It does no modification.
Diffstat (limited to 'src/wallet/scriptpubkeyman.cpp')
-rw-r--r--src/wallet/scriptpubkeyman.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/scriptpubkeyman.cpp b/src/wallet/scriptpubkeyman.cpp
index 5f8e5ac97..defe2f0a9 100644
--- a/src/wallet/scriptpubkeyman.cpp
+++ b/src/wallet/scriptpubkeyman.cpp
@@ -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();