aboutsummaryrefslogtreecommitdiffstats
path: root/eth/downloader/queue.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-06-11 20:56:08 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-06-15 14:22:36 +0800
commit66d3dc8690e0aa551e7b35a17006a2135b51c9bd (patch)
tree2e58d41dd5995e1b7c8d9c6f52b881e0c7934fbd /eth/downloader/queue.go
parent6f5c6150b7060b6b2ee68ac95b30f46c5c2c7f90 (diff)
downloaddexon-66d3dc8690e0aa551e7b35a17006a2135b51c9bd.tar
dexon-66d3dc8690e0aa551e7b35a17006a2135b51c9bd.tar.gz
dexon-66d3dc8690e0aa551e7b35a17006a2135b51c9bd.tar.bz2
dexon-66d3dc8690e0aa551e7b35a17006a2135b51c9bd.tar.lz
dexon-66d3dc8690e0aa551e7b35a17006a2135b51c9bd.tar.xz
dexon-66d3dc8690e0aa551e7b35a17006a2135b51c9bd.tar.zst
dexon-66d3dc8690e0aa551e7b35a17006a2135b51c9bd.zip
eth, eth/downloader: move peer removal into downloader
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{