aboutsummaryrefslogtreecommitdiffstats
path: root/eth/downloader/fakepeer.go
diff options
context:
space:
mode:
Diffstat (limited to 'eth/downloader/fakepeer.go')
-rw-r--r--eth/downloader/fakepeer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/downloader/fakepeer.go b/eth/downloader/fakepeer.go
index ebdb9c334..b45acff7d 100644
--- a/eth/downloader/fakepeer.go
+++ b/eth/downloader/fakepeer.go
@@ -62,7 +62,7 @@ func (p *FakePeer) RequestHeadersByHash(hash common.Hash, amount int, skip int,
number := origin.Number.Uint64()
headers = append(headers, origin)
if reverse {
- for i := 0; i < int(skip)+1; i++ {
+ for i := 0; i <= skip; i++ {
if header := p.hc.GetHeader(hash, number); header != nil {
hash = header.ParentHash
number--