core/txpool/legacypool: fix counter

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
Csaba Kiraly 2025-10-13 16:00:26 +02:00
parent e479de1e72
commit 101745246b
No known key found for this signature in database
GPG key ID: 0FE274EE8C95166E

View file

@ -192,7 +192,6 @@ func (q *queue) promoteExecutables(accounts []common.Address, gasLimit uint64, c
log.Trace("Removing cap-exceeding queued transaction", "hash", hash)
}
queuedRateLimitMeter.Mark(int64(len(caps)))
queuedGauge.Dec(int64(len(dropped)))
// Delete the entire queue entry if it became empty.
if list.Empty() {
@ -201,6 +200,7 @@ func (q *queue) promoteExecutables(accounts []common.Address, gasLimit uint64, c
removedAddresses = append(removedAddresses, addr)
}
}
queuedGauge.Dec(int64(len(dropped)))
return promotable, dropped, removedAddresses
}