diff --git a/src/main.cpp b/src/main.cpp index 45cf3116e..e99a73d76 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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;