diff options
author | Jonas Schnelli <dev@jonasschnelli.ch> | 2017-01-16 08:57:31 +0100 |
---|---|---|
committer | Jonas Schnelli <dev@jonasschnelli.ch> | 2017-03-24 10:28:38 +0100 |
commit | 01de822c8dbc92d8039dd17de9193d72eb7fadd2 (patch) | |
tree | 588fd7bb4dd14cfc30f10ce5aea2f56fb1ad0a65 /src/wallet/wallet.cpp | |
parent | d59531ddfc09f705c2ef3a33c41d6d910756da18 (diff) |
Removed redundant IsLocked() check in NewKeyPool()
Diffstat (limited to 'src/wallet/wallet.cpp')
-rw-r--r-- | src/wallet/wallet.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 349dff4f2e..15dabad7f5 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -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; |