From c0526ea726530938d3ea548b1a6fbfce8ece620d Mon Sep 17 00:00:00 2001 From: Csaba Kiraly Date: Tue, 20 Jan 2026 21:52:25 +0100 Subject: [PATCH] core/txpool/legacypool: reset gauges on clear Signed-off-by: Csaba Kiraly --- core/txpool/legacypool/legacypool.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/txpool/legacypool/legacypool.go b/core/txpool/legacypool/legacypool.go index 5f8dd4fac8..8e7bebae58 100644 --- a/core/txpool/legacypool/legacypool.go +++ b/core/txpool/legacypool/legacypool.go @@ -1839,6 +1839,11 @@ func (pool *LegacyPool) Clear() { pool.pending = make(map[common.Address]*list) pool.queue = newQueue(pool.config, pool.signer) pool.pendingNonces = newNoncer(pool.currentState) + + // Reset gauges + pendingGauge.Update(0) + queuedGauge.Update(0) + slotsGauge.Update(0) } // HasPendingAuth returns a flag indicating whether there are pending