From 40e4f2164371eb0dbf998c15a85460d9c10cd3c7 Mon Sep 17 00:00:00 2001 From: Csaba Kiraly Date: Mon, 2 Mar 2026 20:17:36 +0100 Subject: [PATCH] core/txpool/blobpool: simplify isAnnouncable code Signed-off-by: Csaba Kiraly --- core/txpool/blobpool/blobpool.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/txpool/blobpool/blobpool.go b/core/txpool/blobpool/blobpool.go index d1c732ae0a..3402615fa6 100644 --- a/core/txpool/blobpool/blobpool.go +++ b/core/txpool/blobpool/blobpool.go @@ -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