From 337f209b877d80191318be2e39f2a351ad78dec7 Mon Sep 17 00:00:00 2001 From: Csaba Kiraly Date: Tue, 20 Jan 2026 21:45:25 +0100 Subject: [PATCH] core/txpool/legacypool: set gauges to 0 on clear Signed-off-by: Csaba Kiraly --- core/txpool/legacypool/legacypool.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/txpool/legacypool/legacypool.go b/core/txpool/legacypool/legacypool.go index 53800d27aa..60494b5130 100644 --- a/core/txpool/legacypool/legacypool.go +++ b/core/txpool/legacypool/legacypool.go @@ -1845,6 +1845,9 @@ func (pool *LegacyPool) Clear() { pool.pending = make(map[common.Address]*list) pool.queue = newQueue(pool.config, pool.signer) pool.pendingNonces = newNoncer(pool.currentState) + + pendingAddrsGauge.Update(0) + queuedAddrsGauge.Update(0) } // HasPendingAuth returns a flag indicating whether there are pending