aboutsummaryrefslogtreecommitdiffstats
path: root/eth/downloader/queue.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-06-15 22:43:37 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-06-15 22:43:37 +0800
commit263903378b81f4a17ab34f5ad0d3a7ceb2b5dea9 (patch)
tree730df04d1439ddc089798a9da5b00ab849b95494 /eth/downloader/queue.go
parent6f5c6150b7060b6b2ee68ac95b30f46c5c2c7f90 (diff)
parentaa250e228a7f2eec5d512d05eb042b75e2755d30 (diff)
downloaddexon-263903378b81f4a17ab34f5ad0d3a7ceb2b5dea9.tar
dexon-263903378b81f4a17ab34f5ad0d3a7ceb2b5dea9.tar.gz
dexon-263903378b81f4a17ab34f5ad0d3a7ceb2b5dea9.tar.bz2
dexon-263903378b81f4a17ab34f5ad0d3a7ceb2b5dea9.tar.lz
dexon-263903378b81f4a17ab34f5ad0d3a7ceb2b5dea9.tar.xz
dexon-263903378b81f4a17ab34f5ad0d3a7ceb2b5dea9.tar.zst
dexon-263903378b81f4a17ab34f5ad0d3a7ceb2b5dea9.zip
Merge pull request #1243 from karalabe/instrument-downloader-sync
eth, eth/downloader: separate concerns, clean up test suite
Diffstat (limited to 'eth/downloader/queue.go')
-rw-r--r--eth/downloader/queue.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/downloader/queue.go b/eth/downloader/queue.go
index 7abbd42fd..903f043eb 100644
--- a/eth/downloader/queue.go
+++ b/eth/downloader/queue.go
@@ -320,7 +320,7 @@ func (q *queue) Deliver(id string, blocks []*types.Block) (err error) {
// If a requested block falls out of the range, the hash chain is invalid
index := int(block.NumberU64()) - q.blockOffset
if index >= len(q.blockCache) || index < 0 {
- return ErrInvalidChain
+ return errInvalidChain
}
// Otherwise merge the block and mark the hash block
q.blockCache[index] = &Block{