File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -418,22 +418,6 @@ func (l *txPricedList) Put(tx *types.Transaction) {
418418// Removed notifies the prices transaction list that an old transaction dropped
419419// from the pool. The list will just keep a counter of stale objects and update
420420// the heap if a large enough ratio of transactions go stale.
421- /*func (l *txPricedList) Removed() {
422- // Bump the stale counter, but exit if still too low (< 25%)
423- l.stales++
424- if l.stales <= len(*l.items)/4 {
425- return
426- }
427- // Seems we've reached a critical number of stale transactions, reheap
428- reheap := make(priceHeap, 0, l.all.Count())
429-
430- l.stales, l.items = 0, &reheap
431- l.all.Range(func(hash common.Hash, tx *types.Transaction) bool {
432- *l.items = append(*l.items, tx)
433- return true
434- })
435- heap.Init(l.items)
436- }*/
437421
438422func (l * txPricedList ) Removed (count int ) {
439423 // Bump the stale counter, but exit if still too low (< 25%)
You can’t perform that action at this time.
0 commit comments