bad-txns-in-belowout -> bad-txns-in-ne-out

The error message indicates that the inputs exceed the outputs. In reality, at least for blinded transactions, the error will also appear if the in exceeds the out, i.e. this error appears for all transactions where inputs do not sum up to outputs.
This commit is contained in:
Karl-Johan Alm 2017-07-12 17:50:17 +09:00
parent fe39cf5599
commit 0cd7cc16d3
No known key found for this signature in database
GPG key ID: 57AF762DB3353322

View file

@ -2045,8 +2045,8 @@ bool CheckTxInputs(const CTransaction& tx, CValidationState& state, const CCoins
if (!tx.HasValidFee())
return state.DoS(100, false, REJECT_INVALID, "bad-txns-fee-outofrange");
if (!VerifyAmounts(inputs, tx, pvChecks, cacheStore))
return state.DoS(100, false, REJECT_INVALID, "bad-txns-in-belowout", false,
strprintf("value in (%s) < value out", FormatMoney(nValueIn)));
return state.DoS(100, false, REJECT_INVALID, "bad-txns-in-ne-out", false,
strprintf("value in (%s) != value out", FormatMoney(nValueIn)));
return true;
}