chore(txpool): don't penalize FeeCapBelowMinimumProtocolFeeCap error (#2396)

This commit is contained in:
Matthias Seitz
2023-04-25 19:25:34 +02:00
committed by GitHub
parent c132c6681a
commit f41d81ac63

View File

@@ -73,9 +73,11 @@ impl PoolError {
false
}
PoolError::FeeCapBelowMinimumProtocolFeeCap(_, _) => {
// fee cap of the tx below the technical minimum determined by the protocol: always
// invalid
true
// fee cap of the tx below the technical minimum determined by the protocol, see
// [MINIMUM_PROTOCOL_FEE_CAP](reth_primitives::constants::MIN_PROTOCOL_BASE_FEE)
// although this transaction will always be invalid, we do not want to penalize the
// sender because this check simply could not be implemented by the client
false
}
PoolError::SpammerExceededCapacity(_, _) => {
// spammer detected