From 5fe1da0c2d92feccfe5ffc19366fd4c82a29b57d Mon Sep 17 00:00:00 2001 From: corey Date: Wed, 17 Dec 2025 10:50:36 +0800 Subject: [PATCH] streamline check for costcap --- core/tx_list.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } }