mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-11 02:26:38 +00:00
core/txpool/legacypool: reset gauges on clear (#33654)
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com> Co-authored-by: rjl493456442 <garyrong0905@gmail.com>
This commit is contained in:
parent
8fad02ac63
commit
35922bcd33
1 changed files with 4 additions and 0 deletions
|
|
@ -1846,6 +1846,10 @@ func (pool *LegacyPool) Clear() {
|
||||||
pool.queue = newQueue(pool.config, pool.signer)
|
pool.queue = newQueue(pool.config, pool.signer)
|
||||||
pool.pendingNonces = newNoncer(pool.currentState)
|
pool.pendingNonces = newNoncer(pool.currentState)
|
||||||
|
|
||||||
|
// Reset gauges
|
||||||
|
pendingGauge.Update(0)
|
||||||
|
queuedGauge.Update(0)
|
||||||
|
slotsGauge.Update(0)
|
||||||
pendingAddrsGauge.Update(0)
|
pendingAddrsGauge.Update(0)
|
||||||
queuedAddrsGauge.Update(0)
|
queuedAddrsGauge.Update(0)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue