Browse Source

[Wallet] Bugfix: FRT: don't terminate when keypool is empty

0.14
Jonas Schnelli 8 years ago
parent
commit
c24a4f5981
No known key found for this signature in database
GPG Key ID: 29D4BCB6416F53EC
  1. 6
      src/wallet/wallet.cpp

6
src/wallet/wallet.cpp

@ -2389,7 +2389,11 @@ bool CWallet::CreateTransaction(const vector<CRecipient>& vecSend, CWalletTx& wt @@ -2389,7 +2389,11 @@ bool CWallet::CreateTransaction(const vector<CRecipient>& vecSend, CWalletTx& wt
CPubKey vchPubKey;
bool ret;
ret = reservekey.GetReservedKey(vchPubKey);
assert(ret); // should never fail, as we just unlocked
if (!ret)
{
strFailReason = _("Keypool ran out, please call keypoolrefill first");
return false;
}
scriptChange = GetScriptForDestination(vchPubKey.GetID());
}

Loading…
Cancel
Save