Skip to content

Commit

Permalink
core: ignore basefee when comparing with pool gasprice in txpool (eth…
Browse files Browse the repository at this point in the history
…ereum#24080)

This reverts commit 9489853.
  • Loading branch information
XWJACK authored and JacekGlen committed May 26, 2022
1 parent 04bbc5e commit 305c576
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions core/tx_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -621,9 +621,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 {
return ErrUnderpriced
}
// Ensure the transaction adheres to nonce ordering
Expand Down

0 comments on commit 305c576

Please sign in to comment.