mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-30 01:28:21 -05:00
fix(rpc): fix invalid tip above fee check (#1885)
This commit is contained in:
@@ -200,8 +200,8 @@ where
|
||||
)
|
||||
}
|
||||
|
||||
// Ensure max_fee_per_gas is greater than or equal to max_priority_fee_per_gas.
|
||||
if transaction.max_fee_per_gas() <= transaction.max_priority_fee_per_gas() {
|
||||
// Ensure max_priority_fee_per_gas (if EIP1559) is less than max_fee_per_gas if any.
|
||||
if transaction.max_priority_fee_per_gas() > transaction.max_fee_per_gas() {
|
||||
return TransactionValidationOutcome::Invalid(
|
||||
transaction,
|
||||
InvalidTransactionError::TipAboveFeeCap.into(),
|
||||
|
||||
Reference in New Issue
Block a user