diff --git a/core/tx_list.go b/core/tx_list.go index cc1016b69..e7edda2e8 100644 --- a/core/tx_list.go +++ b/core/tx_list.go @@ -357,7 +357,7 @@ func (l *txList) Add(tx *types.Transaction, state *state.StateDB, priceBump uint ethCost = new(big.Int).Add(tx.Cost(), l1DataFee) } if ethCost != nil && ethCost.Sign() > 0 { - if l.costcap.Eth() == nil || l.costcap.Eth().Cmp(ethCost) < 0 { + if l.costcap.Eth().Cmp(ethCost) < 0 { l.costcap.SetEthAmount(ethCost) } }