Skip to content

Commit f790d8c

Browse files
manav2401GrapeBaBa
authored andcommitted
eth/fetcher: fix invalid tracking of received at time for block (ethereum#28637)
eth/fetcher: fix invalid tracking of received at time
1 parent 4bb1007 commit f790d8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eth/fetcher/block_fetcher.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ func (f *BlockFetcher) loop() {
483483
select {
484484
case res := <-resCh:
485485
res.Done <- nil
486-
f.FilterHeaders(peer, *res.Res.(*eth.BlockHeadersRequest), time.Now().Add(res.Time))
486+
f.FilterHeaders(peer, *res.Res.(*eth.BlockHeadersRequest), time.Now())
487487

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

0 commit comments

Comments
 (0)