Skip to content

Commit

Permalink
eth/fetcher: fix invalid tracking of received at time for block (ethe…
Browse files Browse the repository at this point in the history
…reum#28637)

eth/fetcher: fix invalid tracking of received at time
  • Loading branch information
manav2401 authored and Doozers committed Dec 22, 2023
1 parent 161e35e commit a274cf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/fetcher/block_fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ func (f *BlockFetcher) loop() {
select {
case res := <-resCh:
res.Done <- nil
f.FilterHeaders(peer, *res.Res.(*eth.BlockHeadersRequest), time.Now().Add(res.Time))
f.FilterHeaders(peer, *res.Res.(*eth.BlockHeadersRequest), time.Now())

case <-timeout.C:
// The peer didn't respond in time. The request
Expand Down

0 comments on commit a274cf6

Please sign in to comment.