core: more detailed metering for reorgs (#21420)
This commit is contained in:
committed by
GitHub
parent
7ebc6c43ff
commit
0bdd295cc0
@ -1422,6 +1422,8 @@ func (pool *TxPool) demoteUnexecutables() {
|
||||
pool.enqueueTx(hash, tx)
|
||||
}
|
||||
pendingGauge.Dec(int64(len(gapped)))
|
||||
// This might happen in a reorg, so log it to the metering
|
||||
blockReorgInvalidatedTx.Mark(int64(len(gapped)))
|
||||
}
|
||||
// Delete the entire pending entry if it became empty.
|
||||
if list.Empty() {
|
||||
|
Reference in New Issue
Block a user