mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-21 22:24:32 +00:00
core/txpool/blobpool: simplify isAnnouncable code
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
parent
999ff701ca
commit
40e4f21643
1 changed files with 1 additions and 4 deletions
|
|
@ -2086,10 +2086,7 @@ func (p *BlobPool) evictGapped() {
|
|||
// isAnnouncable checks whether a transaction is announcable based on its
|
||||
// fee parameters and announceThreshold.
|
||||
func (p *BlobPool) isAnnouncable(meta *blobTxMeta) bool {
|
||||
if evictionPriority(p.evict.basefeeJumps, meta.basefeeJumps, p.evict.blobfeeJumps, meta.blobfeeJumps) >= announceThreshold {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
return evictionPriority(p.evict.basefeeJumps, meta.basefeeJumps, p.evict.blobfeeJumps, meta.blobfeeJumps) >= announceThreshold
|
||||
}
|
||||
|
||||
// Stats retrieves the current pool stats, namely the number of pending and the
|
||||
|
|
|
|||
Loading…
Reference in a new issue