From 101745246bde3da84d7010c63ef16012831461e7 Mon Sep 17 00:00:00 2001 From: Csaba Kiraly Date: Mon, 13 Oct 2025 16:00:26 +0200 Subject: [PATCH] core/txpool/legacypool: fix counter Signed-off-by: Csaba Kiraly --- core/txpool/legacypool/queue.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/txpool/legacypool/queue.go b/core/txpool/legacypool/queue.go index 3fcb964bf1..b8417064f7 100644 --- a/core/txpool/legacypool/queue.go +++ b/core/txpool/legacypool/queue.go @@ -192,7 +192,6 @@ func (q *queue) promoteExecutables(accounts []common.Address, gasLimit uint64, c log.Trace("Removing cap-exceeding queued transaction", "hash", hash) } queuedRateLimitMeter.Mark(int64(len(caps))) - queuedGauge.Dec(int64(len(dropped))) // Delete the entire queue entry if it became empty. if list.Empty() { @@ -201,6 +200,7 @@ func (q *queue) promoteExecutables(accounts []common.Address, gasLimit uint64, c removedAddresses = append(removedAddresses, addr) } } + queuedGauge.Dec(int64(len(dropped))) return promotable, dropped, removedAddresses }