aboutsummaryrefslogtreecommitdiffstats
path: root/eth/downloader/downloader.go
diff options
context:
space:
mode:
authorWenbiao Zheng <delweng@gmail.com>2018-10-23 19:21:16 +0800
committerFelix Lange <fjl@users.noreply.github.com>2018-10-23 19:21:16 +0800
commit3088c122d8497acf176f03a3f19f6292e817cab7 (patch)
treee3f823a83fc603b6a7b96b91de6f05c1d153a083 /eth/downloader/downloader.go
parent88b41a9e680a764aa079051aa7c71b3c6879d60a (diff)
downloaddexon-3088c122d8497acf176f03a3f19f6292e817cab7.tar.gz
dexon-3088c122d8497acf176f03a3f19f6292e817cab7.tar.zst
dexon-3088c122d8497acf176f03a3f19f6292e817cab7.zip
eth/downloader: fix comment typos (#17956)
Diffstat (limited to 'eth/downloader/downloader.go')
-rw-r--r--eth/downloader/downloader.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go
index 9cfc8a978..f01a8fdbd 100644
--- a/eth/downloader/downloader.go
+++ b/eth/downloader/downloader.go
@@ -1246,7 +1246,7 @@ func (d *Downloader) processHeaders(origin uint64, pivot uint64, td *big.Int) er
}
// If no headers were retrieved at all, the peer violated its TD promise that it had a
// better chain compared to ours. The only exception is if its promised blocks were
- // already imported by other means (e.g. fecher):
+ // already imported by other means (e.g. fetcher):
//
// R <remote peer>, L <local node>: Both at block 10
// R: Mine block 11, and propagate it to L
@@ -1415,7 +1415,7 @@ func (d *Downloader) processFastSyncContent(latest *types.Header) error {
defer stateSync.Cancel()
go func() {
if err := stateSync.Wait(); err != nil && err != errCancelStateFetch {
- d.queue.Close() // wake up WaitResults
+ d.queue.Close() // wake up Results
}
}()
// Figure out the ideal pivot block. Note, that this goalpost may move if the
@@ -1473,7 +1473,7 @@ func (d *Downloader) processFastSyncContent(latest *types.Header) error {
defer stateSync.Cancel()
go func() {
if err := stateSync.Wait(); err != nil && err != errCancelStateFetch {
- d.queue.Close() // wake up WaitResults
+ d.queue.Close() // wake up Results
}
}()
oldPivot = P