Browse Source

Merge #9204: Clarify CreateTransaction error messages

918b126 fix CreateTransaction error messages (instagibbs)
0.14
Wladimir J. van der Laan 8 years ago
parent
commit
74ced54b7e
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 6
      src/wallet/wallet.cpp

6
src/wallet/wallet.cpp

@ -2238,7 +2238,7 @@ bool CWallet::CreateTransaction(const vector<CRecipient>& vecSend, CWalletTx& wt
{ {
if (nValue < 0 || recipient.nAmount < 0) if (nValue < 0 || recipient.nAmount < 0)
{ {
strFailReason = _("Transaction amounts must be positive"); strFailReason = _("Transaction amounts must not be negative");
return false; return false;
} }
nValue += recipient.nAmount; nValue += recipient.nAmount;
@ -2246,9 +2246,9 @@ bool CWallet::CreateTransaction(const vector<CRecipient>& vecSend, CWalletTx& wt
if (recipient.fSubtractFeeFromAmount) if (recipient.fSubtractFeeFromAmount)
nSubtractFeeFromAmount++; nSubtractFeeFromAmount++;
} }
if (vecSend.empty() || nValue < 0) if (vecSend.empty())
{ {
strFailReason = _("Transaction amounts must be positive"); strFailReason = _("Transaction must have at least one recipient");
return false; return false;
} }

Loading…
Cancel
Save