mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-24 16:59:26 +00:00
core/txpool/blobpool: remove underpriced check after add
Now that we use the correct size before, this is not needed anyome. Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
parent
0f5b89d765
commit
102a272f00
1 changed files with 0 additions and 9 deletions
|
|
@ -1730,15 +1730,6 @@ func (p *BlobPool) addLocked(tx *types.Transaction, checkGapped bool) (err error
|
|||
}
|
||||
p.updateStorageMetrics()
|
||||
|
||||
// If we've just dropped the added transaction, it was clearly underpriced.
|
||||
// We've already checked for this with approximate size, but do a final
|
||||
// check in case it was dropped with the exact size.
|
||||
if !p.lookup.exists(tx.Hash()) {
|
||||
log.Trace("Added blob transaction was dropped immediately, indicating underpricing", "hash", tx.Hash())
|
||||
addUnderpricedMeter.Mark(1)
|
||||
return txpool.ErrUnderpriced
|
||||
}
|
||||
|
||||
addValidMeter.Mark(1)
|
||||
|
||||
// Notify all listeners of the new arrival
|
||||
|
|
|
|||
Loading…
Reference in a new issue