mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-21 20:26:41 +00:00
core/txpool/legacypool: set gauges to 0 on clear
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
parent
dece8b9369
commit
337f209b87
1 changed files with 3 additions and 0 deletions
|
|
@ -1845,6 +1845,9 @@ func (pool *LegacyPool) Clear() {
|
||||||
pool.pending = make(map[common.Address]*list)
|
pool.pending = make(map[common.Address]*list)
|
||||||
pool.queue = newQueue(pool.config, pool.signer)
|
pool.queue = newQueue(pool.config, pool.signer)
|
||||||
pool.pendingNonces = newNoncer(pool.currentState)
|
pool.pendingNonces = newNoncer(pool.currentState)
|
||||||
|
|
||||||
|
pendingAddrsGauge.Update(0)
|
||||||
|
queuedAddrsGauge.Update(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
// HasPendingAuth returns a flag indicating whether there are pending
|
// HasPendingAuth returns a flag indicating whether there are pending
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue