This commit is contained in:
jl777
2018-03-26 16:15:14 +03:00
parent 2da1debd06
commit b3167f313c

View File

@@ -2019,11 +2019,11 @@ bool CheckTxInputs(const CTransaction& tx, CValidationState& state, const CCoins
}
// Tally transaction fees
CAmount nTxFee = nValueIn - tx.GetValueOut();
if (nTxFee < 0)
if (nTxFee < 0 && nSpendHeight > 300000 )
return state.DoS(100, error("CheckInputs(): %s nTxFee < 0", tx.GetHash().ToString()),
REJECT_INVALID, "bad-txns-fee-negative");
nFees += nTxFee;
if (!MoneyRange(nFees))
if (!MoneyRange(nFees) && nSpendHeight > 300000 )
return state.DoS(100, error("CheckInputs(): nFees out of range"),
REJECT_INVALID, "bad-txns-fee-outofrange");
return true;