Browse Source

Immediately return setKeyPool's size if HD or HD_SPLIT is disabled or not supported

0.15
Jonas Schnelli 8 years ago
parent
commit
d59531ddfc
No known key found for this signature in database
GPG Key ID: 1EB776BB03C7922D
  1. 4
      src/wallet/wallet.cpp

4
src/wallet/wallet.cpp

@ -2912,6 +2912,10 @@ size_t CWallet::KeypoolCountExternalKeys() @@ -2912,6 +2912,10 @@ size_t CWallet::KeypoolCountExternalKeys()
{
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);
// count amount of external keys

Loading…
Cancel
Save