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:
Csaba Kiraly 2026-01-20 21:32:00 +01:00
parent d0af257aa2
commit b7f94918df
No known key found for this signature in database
GPG key ID: 0FE274EE8C95166E

View file

@ -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