From 26b8affead6c550111f8af83cb2279a702d7365a Mon Sep 17 00:00:00 2001 From: colin <102356659+colinlyguo@users.noreply.github.com> Date: Thu, 15 Feb 2024 17:20:15 +0800 Subject: [PATCH] Update core/txpool/legacypool/list.go Co-authored-by: Martin HS --- core/txpool/legacypool/list.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/txpool/legacypool/list.go b/core/txpool/legacypool/list.go index 72e86c6011..89188e4330 100644 --- a/core/txpool/legacypool/list.go +++ b/core/txpool/legacypool/list.go @@ -160,7 +160,7 @@ func (m *sortedMap) Cap(threshold int) types.Transactions { // Otherwise gather and drop the highest nonce'd transactions var drops types.Transactions - sort.Sort(*m.index) // the sorted array is a heap, so no need to reheap after deleting tail items + slices.Sort(*m.index) // the sorted array is a heap, so no need to reheap after deleting tail items for size := len(m.items); size > threshold; size-- { drops = append(drops, m.items[(*m.index)[size-1]]) delete(m.items, (*m.index)[size-1])