Skip to content

Commit 8bbf83e

Browse files
authored
core: ignore basefee when comparing with pool gasprice in txpool (#24080)
This reverts commit 9489853.
1 parent 2295640 commit 8bbf83e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

core/tx_pool.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -621,9 +621,8 @@ func (pool *TxPool) validateTx(tx *types.Transaction, local bool) error {
621621
if err != nil {
622622
return ErrInvalidSender
623623
}
624-
// Drop non-local transactions under our own minimal accepted gas price or tip.
625-
pendingBaseFee := pool.priced.urgent.baseFee
626-
if !local && tx.EffectiveGasTipIntCmp(pool.gasPrice, pendingBaseFee) < 0 {
624+
// Drop non-local transactions under our own minimal accepted gas price or tip
625+
if !local && tx.GasTipCapIntCmp(pool.gasPrice) < 0 {
627626
return ErrUnderpriced
628627
}
629628
// Ensure the transaction adheres to nonce ordering

0 commit comments

Comments
 (0)