Skip to content

Commit 886f173

Browse files
committed
Key pool: Fix omitted pre-split count in GetKeyPoolSize
This is a bugfix: bitcoin/bitcoin#16341 (comment)
1 parent 386a994 commit 886f173

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wallet/scriptpubkeyman.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ size_t LegacyScriptPubKeyMan::KeypoolCountExternalKeys()
455455
unsigned int LegacyScriptPubKeyMan::GetKeyPoolSize() const
456456
{
457457
AssertLockHeld(cs_wallet);
458-
return setInternalKeyPool.size() + setExternalKeyPool.size();
458+
return setInternalKeyPool.size() + setExternalKeyPool.size() + set_pre_split_keypool.size();
459459
}
460460

461461
int64_t LegacyScriptPubKeyMan::GetTimeFirstKey() const

0 commit comments

Comments
 (0)