mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
core: fix pending counter metric
This commit is contained in:
parent
73e39ba0c0
commit
049300a805
1 changed files with 1 additions and 1 deletions
|
|
@ -1339,7 +1339,7 @@ func (pool *TxPool) demoteUnexecutables() {
|
|||
log.Error("Demoting invalidated transaction", "hash", hash)
|
||||
pool.enqueueTx(hash, tx)
|
||||
}
|
||||
pendingCounter.Inc(int64(len(gapped)))
|
||||
pendingCounter.Dec(int64(len(gapped)))
|
||||
}
|
||||
// Delete the entire queue entry if it became empty.
|
||||
if list.Empty() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue