fix(rpc): fix invalid tip above fee check (#1885)

This commit is contained in:
Matthias Seitz
2023-03-21 18:13:08 +01:00
committed by GitHub
parent 44d279b53e
commit f2cb8bec63

View File

@@ -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(),