core/txpool/blobpool: simplify isAnnouncable code

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
Csaba Kiraly 2026-03-02 20:17:36 +01:00
parent 999ff701ca
commit 40e4f21643
No known key found for this signature in database
GPG key ID: 0FE274EE8C95166E

View file

@ -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