mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
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:
parent
fe39cf5599
commit
0cd7cc16d3
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue