From 0cd7cc16d31c911447871acbcefa8c2c8813a1b2 Mon Sep 17 00:00:00 2001 From: Karl-Johan Alm Date: Wed, 12 Jul 2017 17:50:17 +0900 Subject: [PATCH] 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. --- src/validation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/validation.cpp b/src/validation.cpp index 6e699b832f..f046e30991 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -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; }