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.
1 parent 44771b7 commit 28fa3adCopy full SHA for 28fa3ad
core/txpool/legacypool/list.go
@@ -618,7 +618,7 @@ func (l *pricedList) underpricedFor(h *priceHeap, tx *types.Transaction) bool {
618
func (l *pricedList) Discard(slots int, force bool) (types.Transactions, bool) {
619
drop := make(types.Transactions, 0, slots) // Remote underpriced transactions to drop
620
for slots > 0 {
621
- if len(l.urgent.list)*floatingRatio > len(l.floating.list)*urgentRatio || floatingRatio == 0 {
+ if len(l.urgent.list)*floatingRatio > len(l.floating.list)*urgentRatio {
622
// Discard stale transactions if found during cleanup
623
tx := heap.Pop(&l.urgent).(*types.Transaction)
624
if l.all.GetRemote(tx.Hash()) == nil { // Removed or migrated
0 commit comments