Skip to content

Commit

Permalink
fix demote counter
Browse files Browse the repository at this point in the history
  • Loading branch information
andyzhang2023 committed Dec 6, 2024
1 parent bad8ed3 commit ca94ffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/txpool/legacypool/legacypool.go
Original file line number Diff line number Diff line change
Expand Up @@ -2007,7 +2007,6 @@ func (pool *LegacyPool) demoteUnexecutables(demoteAddrs []common.Address) (demot
// Internal shuffle shouldn't touch the lookup set.
pool.enqueueTx(hash, tx, false, false)
}
demoted += len(olds)
dropPendingCache = append(dropPendingCache, olds...)
dropPendingCache = append(dropPendingCache, invalids...)
dropPendingCache = append(dropPendingCache, drops...)
Expand Down Expand Up @@ -2037,6 +2036,7 @@ func (pool *LegacyPool) demoteUnexecutables(demoteAddrs []common.Address) (demot
}
pool.pendingCache.del(dropPendingCache, pool.signer)
removed += len(dropPendingCache)
demoted += len(dropPendingCache)
}
t0 := time.Now()
pool.priced.Removed(removed)
Expand Down

0 comments on commit ca94ffd

Please sign in to comment.