aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet.cpp
diff options
context:
space:
mode:
authorJonas Schnelli <dev@jonasschnelli.ch>2017-01-16 08:57:31 +0100
committerJonas Schnelli <dev@jonasschnelli.ch>2017-03-24 10:28:38 +0100
commit01de822c8dbc92d8039dd17de9193d72eb7fadd2 (patch)
tree588fd7bb4dd14cfc30f10ce5aea2f56fb1ad0a65 /src/wallet/wallet.cpp
parentd59531ddfc09f705c2ef3a33c41d6d910756da18 (diff)
Removed redundant IsLocked() check in NewKeyPool()
Diffstat (limited to 'src/wallet/wallet.cpp')
-rw-r--r--src/wallet/wallet.cpp5
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;