mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-26 14:54:21 +00:00
Immediately return setKeyPool's size if HD or HD_SPLIT is disabled or not supported
This commit is contained in:
parent
02592f4c5e
commit
d59531ddfc
@ -2912,6 +2912,10 @@ size_t CWallet::KeypoolCountExternalKeys()
|
|||||||
{
|
{
|
||||||
AssertLockHeld(cs_wallet); // setKeyPool
|
AssertLockHeld(cs_wallet); // setKeyPool
|
||||||
|
|
||||||
|
// immediately return setKeyPool's size if HD or HD_SPLIT is disabled or not supported
|
||||||
|
if (!IsHDEnabled() || !CanSupportFeature(FEATURE_HD_SPLIT))
|
||||||
|
return setKeyPool.size();
|
||||||
|
|
||||||
CWalletDB walletdb(strWalletFile);
|
CWalletDB walletdb(strWalletFile);
|
||||||
|
|
||||||
// count amount of external keys
|
// count amount of external keys
|
||||||
|
Loading…
x
Reference in New Issue
Block a user