Skip to content

Commit

Permalink
debug: poc test reach bottleneck when txpool is full (#8)
Browse files Browse the repository at this point in the history
Co-authored-by: andyzhang2023 <[email protected]>
  • Loading branch information
andyzhang2023 and andyzhang2023 authored Oct 31, 2024
1 parent 3b1b0bc commit 3b1cd56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/txpool/legacypool/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ func (l *pricedList) Discard(slots int, force bool) (types.Transactions, bool) {
}

func (l *pricedList) NeedReheap(currHead *types.Header) bool {
return l.currHead == nil || currHead == nil || currHead.Hash().Cmp(l.currHead.Hash()) != 0
return l.currHead == nil || currHead == nil || currHead != l.currHead
}

// Reheap forcibly rebuilds the heap based on the current remote transaction set.
Expand Down

0 comments on commit 3b1cd56

Please sign in to comment.