mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
revert a underprice check in txpool (#987)
revert underprice check in txpool
This commit is contained in:
parent
1d331572b6
commit
f883ca89cb
1 changed files with 2 additions and 3 deletions
|
|
@ -748,9 +748,8 @@ func (pool *LegacyPool) add(tx *types.Transaction, local bool) (replaced bool, e
|
|||
// If the transaction pool is full, discard underpriced transactions
|
||||
if uint64(pool.all.Slots()+numSlots(tx)) > pool.config.GlobalSlots+pool.config.GlobalQueue {
|
||||
// If the new transaction is underpriced, don't accept it
|
||||
// if !isLocal && pool.priced.Underpriced(tx) {
|
||||
if !isLocal && tx.GasFeeCapIntCmp(pool.gasTip.Load()) < 0 {
|
||||
log.Trace("Discarding underpriced transaction", "hash", hash, "gasTipCap", tx.GasTipCap(), "gasFeeCap", tx.GasFeeCap(), "txPoolGasTip", pool.gasTip.Load())
|
||||
if !isLocal && pool.priced.Underpriced(tx) {
|
||||
log.Trace("Discarding underpriced transaction", "hash", hash, "gasTipCap", tx.GasTipCap(), "gasFeeCap", tx.GasFeeCap())
|
||||
underpricedTxMeter.Mark(1)
|
||||
return false, txpool.ErrUnderpriced
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue