From 55722a08f82659207874c899a3b60643fa009fed Mon Sep 17 00:00:00 2001 From: Daniel Liu Date: Fri, 31 May 2024 11:31:45 +0800 Subject: [PATCH] core: ignore basefee when comparing with pool gasprice in txpool (#24080) --- core/tx_pool.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/tx_pool.go b/core/tx_pool.go index daf184506264..be8cbf2454c2 100644 --- a/core/tx_pool.go +++ b/core/tx_pool.go @@ -673,9 +673,8 @@ func (pool *TxPool) validateTx(tx *types.Transaction, local bool) error { if err != nil { return ErrInvalidSender } - // Drop non-local transactions under our own minimal accepted gas price or tip. - pendingBaseFee := pool.priced.urgent.baseFee - if !local && tx.EffectiveGasTipIntCmp(pool.gasPrice, pendingBaseFee) < 0 { + // Drop non-local transactions under our own minimal accepted gas price or tip + if !local && tx.GasTipCapIntCmp(pool.gasPrice) < 0 { if !tx.IsSpecialTransaction() || (pool.IsSigner != nil && !pool.IsSigner(from)) { return ErrUnderpriced }