mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-18 10:50:44 +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
|
// isAnnouncable checks whether a transaction is announcable based on its
|
||||||
// fee parameters and announceThreshold.
|
// fee parameters and announceThreshold.
|
||||||
func (p *BlobPool) isAnnouncable(meta *blobTxMeta) bool {
|
func (p *BlobPool) isAnnouncable(meta *blobTxMeta) bool {
|
||||||
if evictionPriority(p.evict.basefeeJumps, meta.basefeeJumps, p.evict.blobfeeJumps, meta.blobfeeJumps) >= announceThreshold {
|
return evictionPriority(p.evict.basefeeJumps, meta.basefeeJumps, p.evict.blobfeeJumps, meta.blobfeeJumps) >= announceThreshold
|
||||||
return true
|
|
||||||
}
|
|
||||||
return false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Stats retrieves the current pool stats, namely the number of pending and the
|
// Stats retrieves the current pool stats, namely the number of pending and the
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue