core/txpool/legacypool: reset gauges on clear (#33654)
Some checks are pending
/ Linux Build (push) Waiting to run
/ Linux Build (arm) (push) Waiting to run
/ Keeper Build (push) Waiting to run
/ Windows Build (push) Waiting to run
/ Docker Image (push) Waiting to run

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
This commit is contained in:
Csaba Kiraly 2026-01-21 09:00:57 +01:00 committed by GitHub
parent 8fad02ac63
commit 35922bcd33
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1846,6 +1846,10 @@ func (pool *LegacyPool) Clear() {
pool.queue = newQueue(pool.config, pool.signer)
pool.pendingNonces = newNoncer(pool.currentState)
// Reset gauges
pendingGauge.Update(0)
queuedGauge.Update(0)
slotsGauge.Update(0)
pendingAddrsGauge.Update(0)
queuedAddrsGauge.Update(0)
}