diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -3998,9 +3998,7 @@ { LOCK(cs_wallet); - if (!IsLocked()) { - TopUpKeyPool(); - } + TopUpKeyPool(); bool fReturningInternal = fRequestedInternal; fReturningInternal &= @@ -4100,9 +4098,8 @@ CTxDestination &dest, std::string &error) { LOCK(cs_wallet); error.clear(); - if (!IsLocked()) { - TopUpKeyPool(); - } + + TopUpKeyPool(); // Generate a new key that is added to wallet CPubKey new_key; @@ -4121,9 +4118,8 @@ CTxDestination &dest, std::string &error) { error.clear(); - if (!IsLocked()) { - TopUpKeyPool(); - } + + TopUpKeyPool(); ReserveDestination reservedest(this); if (!reservedest.GetReservedDestination(type, dest, true)) {