From 9d38466437acebf4d09548ce066eb5a5db60cd2c Mon Sep 17 00:00:00 2001 From: Ha DANG Date: Tue, 3 Jan 2023 16:03:44 +0700 Subject: [PATCH] eth/downloader: fix some typos (#26396) --- eth/downloader/downloader.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go index 41c5d66ed..f58da869e 100644 --- a/eth/downloader/downloader.go +++ b/eth/downloader/downloader.go @@ -481,7 +481,7 @@ func (d *Downloader) syncWithPeer(p *peerConnection, hash common.Hash, td, ttd * return err } } else { - // In beacon mode, user the skeleton chain to retrieve the headers from + // In beacon mode, use the skeleton chain to retrieve the headers from latest, _, err = d.skeleton.Bounds() if err != nil { return err @@ -1174,7 +1174,7 @@ func (d *Downloader) fetchHeaders(p *peerConnection, from uint64, head uint64) e } } } - // If no headers have bene delivered, or all of them have been delayed, + // If no headers have been delivered, or all of them have been delayed, // sleep a bit and retry. Take care with headers already consumed during // skeleton filling if len(headers) == 0 && !progressed {