Removed redundant IsLocked() check in NewKeyPool()

This commit is contained in:
Jonas Schnelli 2017-01-16 08:57:31 +01:00
parent d59531ddfc
commit 01de822c8d
No known key found for this signature in database
GPG key ID: 1EB776BB03C7922D

View file

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