From 706656afe6495d33dd33470584646f9dda463b2f Mon Sep 17 00:00:00 2001 From: gop Date: Thu, 25 Apr 2024 13:38:41 -0500 Subject: [PATCH] bugfix: Remove the extra enforce tip check for remote tx --- core/tx_pool.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/core/tx_pool.go b/core/tx_pool.go index ff88503eda..a9f0c50766 100644 --- a/core/tx_pool.go +++ b/core/tx_pool.go @@ -635,22 +635,6 @@ func (pool *TxPool) TxPoolPending(enforceTips bool) (map[common.AddressBytes]typ pending := make(map[common.AddressBytes]types.Transactions) for addr, list := range pool.pending { txs := list.Flatten() - - // If the miner requests tip enforcement, cap the lists now - if enforceTips && !pool.locals.contains(addr) { - for i, tx := range txs { - if tx.EffectiveGasTipIntCmp(pool.gasPrice, pool.priced.urgent.baseFee) < 0 { - pool.logger.WithFields(log.Fields{ - "tx": tx.Hash().String(), - "gasTipCap": tx.GasTipCap().String(), - "poolGasPrice": pool.gasPrice.String(), - "baseFee": pool.priced.urgent.baseFee.String(), - }).Debug("TX has incorrect or low miner tip") - txs = txs[:i] - break - } - } - } if len(txs) > 0 { pending[addr.Bytes20()] = txs }