Browse Source

Removed redundant IsLocked() check in NewKeyPool()

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

5
src/wallet/wallet.cpp

@ -2899,10 +2899,9 @@ bool CWallet::NewKeyPool()
walletdb.ErasePool(nIndex); walletdb.ErasePool(nIndex);
setKeyPool.clear(); setKeyPool.clear();
if (IsLocked()) if (!TopUpKeyPool()) {
return false; return false;
}
TopUpKeyPool();
LogPrintf("CWallet::NewKeyPool rewrote keypool\n"); LogPrintf("CWallet::NewKeyPool rewrote keypool\n");
} }
return true; return true;

Loading…
Cancel
Save