From 905b0b981ab289a3eb543408aadf0a6cac6e7214 Mon Sep 17 00:00:00 2001 From: wit Date: Mon, 27 Oct 2025 17:39:33 +0800 Subject: [PATCH] core: rename parameter `filter` to `filterFun` for readability --- core/txpool/legacypool/list.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/txpool/legacypool/list.go b/core/txpool/legacypool/list.go index 0c9f13c62f..8421bcb8ea 100644 --- a/core/txpool/legacypool/list.go +++ b/core/txpool/legacypool/list.go @@ -134,12 +134,12 @@ func (m *SortedMap) reheap() { // filter is identical to Filter, but **does not** regenerate the heap. This method // should only be used if followed immediately by a call to Filter or reheap() -func (m *SortedMap) filter(filter func(*types.Transaction) bool) types.Transactions { +func (m *SortedMap) filter(filterFun func(*types.Transaction) bool) types.Transactions { var removed types.Transactions // Collect all the transactions to filter out for nonce, tx := range m.items { - if filter(tx) { + if filterFun(tx) { removed = append(removed, tx) delete(m.items, nonce) }