Removed redundant IsLocked() check in NewKeyPool()
This commit is contained in:
parent
d59531ddfc
commit
01de822c8d
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue