Skip to content

Commit

Permalink
Key pool: Fix omitted pre-split count in GetKeyPoolSize
Browse files Browse the repository at this point in the history
This is a bugfix: bitcoin#16341 (comment)
  • Loading branch information
achow101 committed Oct 26, 2019
1 parent dd26d2b commit 5bd8339
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wallet/scriptpubkeyman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ size_t LegacyScriptPubKeyMan::KeypoolCountExternalKeys()
unsigned int LegacyScriptPubKeyMan::GetKeyPoolSize() const
{
LOCK(cs_KeyStore);
return setInternalKeyPool.size() + setExternalKeyPool.size();
return setInternalKeyPool.size() + setExternalKeyPool.size() + set_pre_split_keypool.size();
}

int64_t LegacyScriptPubKeyMan::GetTimeFirstKey() const
Expand Down

0 comments on commit 5bd8339

Please sign in to comment.