mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-20 11:46:44 +00:00
core/txpool/legacypool: fix stale counter
pool.priced.Removed needed to keep is sync with pool.all It was called in other occurances, but not here. Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
parent
d0af257aa2
commit
b7f94918df
1 changed files with 1 additions and 0 deletions
|
|
@ -1563,6 +1563,7 @@ func (pool *LegacyPool) demoteUnexecutables() {
|
|||
// Internal shuffle shouldn't touch the lookup set.
|
||||
pool.enqueueTx(hash, tx, false)
|
||||
}
|
||||
pool.priced.Removed(len(olds) + len(drops))
|
||||
pendingGauge.Dec(int64(len(olds) + len(drops) + len(invalids)))
|
||||
|
||||
// If there's a gap in front, alert (should never happen) and postpone all transactions
|
||||
|
|
|
|||
Loading…
Reference in a new issue