diff --git a/core/txpool/validation.go b/core/txpool/validation.go index 1b65d0c80f..284fc062fc 100644 --- a/core/txpool/validation.go +++ b/core/txpool/validation.go @@ -134,8 +134,8 @@ func ValidateTransaction(tx *types.Transaction, head *types.Header, signer types // We require transactions to pay for 110% of intrinsic gas in order to // prevent situations where a change in gas limit invalidates a lot // of transactions in the txpool - if tx.Gas() < (intrGas.RegularGas*10)/9 { - return fmt.Errorf("%w: gas %v, minimum needed %v", core.ErrIntrinsicGas, tx.Gas(), intrGas.RegularGas) + if minGas := (intrGas.RegularGas * 10) / 9; tx.Gas() < minGas { + return fmt.Errorf("%w: gas %v, minimum needed %v", core.ErrIntrinsicGas, tx.Gas(), minGas) } } if tx.Gas() < intrGas.RegularGas {