test
This commit is contained in:
@@ -915,8 +915,10 @@ bool CheckTransactionWithoutProofVerification(const CTransaction& tx, CValidatio
|
||||
return state.DoS(100, error("CheckTransaction(): txout.nValue negative"),
|
||||
REJECT_INVALID, "bad-txns-vout-negative");
|
||||
if (txout.nValue > MAX_MONEY)
|
||||
return state.DoS(100, error("CheckTransaction(): txout.nValue too high"),
|
||||
REJECT_INVALID, "bad-txns-vout-toolarge");
|
||||
{
|
||||
fprintf(stderr,"%.8f > max %.8f\n",(double)txout.nValue/COIN,(double)MAX_MONEY/COIN);
|
||||
return state.DoS(100, error("CheckTransaction(): txout.nValue too high"),REJECT_INVALID, "bad-txns-vout-toolarge");
|
||||
}
|
||||
nValueOut += txout.nValue;
|
||||
if (!MoneyRange(nValueOut))
|
||||
return state.DoS(100, error("CheckTransaction(): txout total out of range"),
|
||||
|
||||
Reference in New Issue
Block a user