We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
filter
filterFun
1 parent 447b5f7 commit 905b0b9Copy full SHA for 905b0b9
core/txpool/legacypool/list.go
@@ -134,12 +134,12 @@ func (m *SortedMap) reheap() {
134
135
// filter is identical to Filter, but **does not** regenerate the heap. This method
136
// should only be used if followed immediately by a call to Filter or reheap()
137
-func (m *SortedMap) filter(filter func(*types.Transaction) bool) types.Transactions {
+func (m *SortedMap) filter(filterFun func(*types.Transaction) bool) types.Transactions {
138
var removed types.Transactions
139
140
// Collect all the transactions to filter out
141
for nonce, tx := range m.items {
142
- if filter(tx) {
+ if filterFun(tx) {
143
removed = append(removed, tx)
144
delete(m.items, nonce)
145
}
0 commit comments