Skip to content

Commit

Permalink
added in some cuddling changes to address the linter / CI test fails
Browse files Browse the repository at this point in the history
  • Loading branch information
thogard785 committed Apr 28, 2023
1 parent 1e926cf commit 7d765e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions core/tx_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,9 @@ func (l *txList) Filter(costLimit *uint256.Int, gasLimit uint64) (types.Transact
}
invalids = l.txs.filter(func(tx *types.Transaction) bool { return tx.Nonce() > lowest })
}

l.txs.reheap()

return removed, invalids
}

Expand Down
7 changes: 4 additions & 3 deletions eth/fetcher/tx_fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -719,9 +719,10 @@ func (f *TxFetcher) rescheduleWait(timer *mclock.Timer, trigger chan struct{}) {
}
}
}
*timer = f.clock.AfterFunc(f.txArrivalWait-time.Duration(now-earliest), func() {
trigger <- struct{}{}
})
*timer = f.clock.AfterFunc(
f.txArrivalWait-time.Duration(now-earliest),
func() { trigger <- struct{}{} },
)
}

// rescheduleTimeout iterates over all the transactions currently in flight and
Expand Down

0 comments on commit 7d765e0

Please sign in to comment.