mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 05:06:43 +00:00
core/txpool/legacypool: fix counter
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
parent
e479de1e72
commit
101745246b
1 changed files with 1 additions and 1 deletions
|
|
@ -192,7 +192,6 @@ func (q *queue) promoteExecutables(accounts []common.Address, gasLimit uint64, c
|
||||||
log.Trace("Removing cap-exceeding queued transaction", "hash", hash)
|
log.Trace("Removing cap-exceeding queued transaction", "hash", hash)
|
||||||
}
|
}
|
||||||
queuedRateLimitMeter.Mark(int64(len(caps)))
|
queuedRateLimitMeter.Mark(int64(len(caps)))
|
||||||
queuedGauge.Dec(int64(len(dropped)))
|
|
||||||
|
|
||||||
// Delete the entire queue entry if it became empty.
|
// Delete the entire queue entry if it became empty.
|
||||||
if list.Empty() {
|
if list.Empty() {
|
||||||
|
|
@ -201,6 +200,7 @@ func (q *queue) promoteExecutables(accounts []common.Address, gasLimit uint64, c
|
||||||
removedAddresses = append(removedAddresses, addr)
|
removedAddresses = append(removedAddresses, addr)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
queuedGauge.Dec(int64(len(dropped)))
|
||||||
return promotable, dropped, removedAddresses
|
return promotable, dropped, removedAddresses
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue