aboutsummaryrefslogtreecommitdiffstats
path: root/eth/downloader/fakepeer.go
diff options
context:
space:
mode:
authorYusup <awklsgrep@gmail.com>2018-04-04 18:25:02 +0800
committerFelix Lange <fjl@users.noreply.github.com>2018-04-04 18:25:02 +0800
commit7aad81f8815084c8ed032705fbaf6d3710e518cf (patch)
treea79cccc5f2040ac2ec496ca18e7381390c30fbc7 /eth/downloader/fakepeer.go
parent2a4bd55b43df92fe2f83468656ca03199596bceb (diff)
downloaddexon-7aad81f8815084c8ed032705fbaf6d3710e518cf.tar
dexon-7aad81f8815084c8ed032705fbaf6d3710e518cf.tar.gz
dexon-7aad81f8815084c8ed032705fbaf6d3710e518cf.tar.bz2
dexon-7aad81f8815084c8ed032705fbaf6d3710e518cf.tar.lz
dexon-7aad81f8815084c8ed032705fbaf6d3710e518cf.tar.xz
dexon-7aad81f8815084c8ed032705fbaf6d3710e518cf.tar.zst
dexon-7aad81f8815084c8ed032705fbaf6d3710e518cf.zip
eth: fix typos (#16414)
Diffstat (limited to 'eth/downloader/fakepeer.go')
-rw-r--r--eth/downloader/fakepeer.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/eth/downloader/fakepeer.go b/eth/downloader/fakepeer.go
index b45acff7d..5248e7fb0 100644
--- a/eth/downloader/fakepeer.go
+++ b/eth/downloader/fakepeer.go
@@ -27,7 +27,7 @@ import (
// FakePeer is a mock downloader peer that operates on a local database instance
// instead of being an actual live node. It's useful for testing and to implement
-// sync commands from an xisting local database.
+// sync commands from an existing local database.
type FakePeer struct {
id string
db ethdb.Database
@@ -48,7 +48,7 @@ func (p *FakePeer) Head() (common.Hash, *big.Int) {
}
// RequestHeadersByHash implements downloader.Peer, returning a batch of headers
-// defined by the origin hash and the associaed query parameters.
+// defined by the origin hash and the associated query parameters.
func (p *FakePeer) RequestHeadersByHash(hash common.Hash, amount int, skip int, reverse bool) error {
var (
headers []*types.Header
@@ -92,7 +92,7 @@ func (p *FakePeer) RequestHeadersByHash(hash common.Hash, amount int, skip int,
}
// RequestHeadersByNumber implements downloader.Peer, returning a batch of headers
-// defined by the origin number and the associaed query parameters.
+// defined by the origin number and the associated query parameters.
func (p *FakePeer) RequestHeadersByNumber(number uint64, amount int, skip int, reverse bool) error {
var (
headers []*types.Header