Skip to content

Commit 392cfe0

Browse files
committed
Code clean
1 parent e92f3ce commit 392cfe0

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

core/tx_list.go

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff 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

438422
func (l *txPricedList) Removed(count int) {
439423
// Bump the stale counter, but exit if still too low (< 25%)

0 commit comments

Comments
 (0)