From f2f20444705bdaf38ee7c3e658e39548e19104d2 Mon Sep 17 00:00:00 2001 From: Daniel Liu Date: Mon, 24 Mar 2025 18:46:59 +0800 Subject: [PATCH] core/txpool: fix zero tip tx always pending --- core/txpool/txpool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/txpool/txpool.go b/core/txpool/txpool.go index f38f666334..2061569247 100644 --- a/core/txpool/txpool.go +++ b/core/txpool/txpool.go @@ -570,7 +570,7 @@ func (pool *TxPool) Pending(enforceTips bool) map[common.Address]types.Transacti // If the miner requests tip enforcement, cap the lists now if enforceTips && !pool.locals.contains(addr) { for i, tx := range txs { - if !tx.IsSpecialTransaction() && tx.EffectiveGasTipIntCmp(pool.gasPrice, pool.priced.urgent.baseFee) < 0 { + if !tx.IsSpecialTransaction() && tx.GasPrice().Cmp(pool.priced.urgent.baseFee) < 0 { txs = txs[:i] break }