Skip to content

Commit eef8a67

Browse files
committed
Merge pull request #3300
848fe68 cleanup error message consistency (Julian Langschaedel)
2 parents be5d37c + 848fe68 commit eef8a67

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ bool CheckTransaction(const CTransaction& tx, CValidationState &state)
552552
REJECT_INVALID, "vout empty");
553553
// Size limits
554554
if (::GetSerializeSize(tx, SER_NETWORK, PROTOCOL_VERSION) > MAX_BLOCK_SIZE)
555-
return state.DoS(100, error("CTransaction::CheckTransaction() : size limits failed"),
555+
return state.DoS(100, error("CheckTransaction() : size limits failed"),
556556
REJECT_INVALID, "oversize");
557557

558558
// Check for negative or overflow output values
@@ -567,7 +567,7 @@ bool CheckTransaction(const CTransaction& tx, CValidationState &state)
567567
REJECT_INVALID, "vout too large");
568568
nValueOut += txout.nValue;
569569
if (!MoneyRange(nValueOut))
570-
return state.DoS(100, error("CTransaction::CheckTransaction() : txout total out of range"),
570+
return state.DoS(100, error("CheckTransaction() : txout total out of range"),
571571
REJECT_INVALID, "txout total too large");
572572
}
573573

@@ -576,7 +576,7 @@ bool CheckTransaction(const CTransaction& tx, CValidationState &state)
576576
BOOST_FOREACH(const CTxIn& txin, tx.vin)
577577
{
578578
if (vInOutPoints.count(txin.prevout))
579-
return state.DoS(100, error("CTransaction::CheckTransaction() : duplicate inputs"),
579+
return state.DoS(100, error("CheckTransaction() : duplicate inputs"),
580580
REJECT_INVALID, "duplicate inputs");
581581
vInOutPoints.insert(txin.prevout);
582582
}

0 commit comments

Comments
 (0)