Skip to content

Commit

Permalink
bugfix: Remove the extra enforce tip check for remote tx
Browse files Browse the repository at this point in the history
  • Loading branch information
gameofpointers committed Apr 25, 2024
1 parent 822ef84 commit 91843cd
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions core/tx_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 91843cd

Please sign in to comment.