From b7f94918df441fd798dc4b7691d8b876fcc4c46b Mon Sep 17 00:00:00 2001 From: Csaba Kiraly Date: Tue, 20 Jan 2026 21:32:00 +0100 Subject: [PATCH] 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 --- core/txpool/legacypool/legacypool.go | 1 + 1 file changed, 1 insertion(+) diff --git a/core/txpool/legacypool/legacypool.go b/core/txpool/legacypool/legacypool.go index 5f8dd4fac8..92ee6409da 100644 --- a/core/txpool/legacypool/legacypool.go +++ b/core/txpool/legacypool/legacypool.go @@ -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