mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 13:03:17 +01:00
Removed redundant IsLocked() check in NewKeyPool()
This commit is contained in:
parent
d59531ddfc
commit
01de822c8d
@ -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…
Reference in New Issue
Block a user