Skip to content

Commit

Permalink
eth/downloader: fix issue #277
Browse files Browse the repository at this point in the history
  • Loading branch information
gzliudan committed Jun 27, 2024
1 parent b3e0f70 commit 76ab0b5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion eth/downloader/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,6 @@ func (q *queue) reserveHeaders(p *peerConnection, count int, taskPool map[common
index := int(header.Number.Int64() - int64(q.resultOffset))
if index >= len(q.resultCache) || index < 0 {
log.Error("index allocation went beyond available resultCache space", "index", index, "len.resultCache", len(q.resultCache), "blockNum", header.Number.Int64(), "resultOffset", q.resultOffset)
common.Report("index allocation went beyond available resultCache space")
return nil, false, errInvalidChain
}
if q.resultCache[index] == nil {
Expand Down

0 comments on commit 76ab0b5

Please sign in to comment.