Use nAbsurdFee instead of maxTxFee in AcceptToMemoryPoolWorker()

main.cpp
This commit is contained in:
lateminer
2018-10-23 22:09:14 +03:00
parent 159b4c71e3
commit afa46b1aef

View File

@@ -1346,10 +1346,10 @@ bool AcceptToMemoryPoolWorker(CTxMemPool& pool, CValidationState& state, const C
LogPrint("mempool", "Rate limit dFreeCount: %g => %g\n", dFreeCount, dFreeCount+nSize);
}
if (nAbsurdFee && nFees > maxTxFee)
if (nAbsurdFee && nFees > nAbsurdFee)
return state.Invalid(false,
REJECT_HIGHFEE, "absurdly-high-fee",
strprintf("%d > %d", nFees, maxTxFee));
strprintf("%d > %d", nFees, nAbsurdFee));
// Calculate in-mempool ancestors, up to a limit.
CTxMemPool::setEntries setAncestors;