aboutsummaryrefslogtreecommitdiffstats
path: root/eth/downloader/downloader.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-30 01:55:04 +0800
committerobscuren <geffobscura@gmail.com>2015-04-30 01:55:04 +0800
commitf8c27d7159c3f93f0ca05ab1df86cca98d86e52e (patch)
tree0a2a3b9b1d285b2367d3970e344dff454a6d0df3 /eth/downloader/downloader.go
parentc9300458344e9024b4d18171f87b7e0edb3b6859 (diff)
downloaddexon-f8c27d7159c3f93f0ca05ab1df86cca98d86e52e.tar
dexon-f8c27d7159c3f93f0ca05ab1df86cca98d86e52e.tar.gz
dexon-f8c27d7159c3f93f0ca05ab1df86cca98d86e52e.tar.bz2
dexon-f8c27d7159c3f93f0ca05ab1df86cca98d86e52e.tar.lz
dexon-f8c27d7159c3f93f0ca05ab1df86cca98d86e52e.tar.xz
dexon-f8c27d7159c3f93f0ca05ab1df86cca98d86e52e.tar.zst
dexon-f8c27d7159c3f93f0ca05ab1df86cca98d86e52e.zip
eth/downloader: drop block
Diffstat (limited to 'eth/downloader/downloader.go')
-rw-r--r--eth/downloader/downloader.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go
index 81808b4f8..4cd927fd5 100644
--- a/eth/downloader/downloader.go
+++ b/eth/downloader/downloader.go
@@ -439,7 +439,7 @@ func (d *Downloader) process(peer *peer) error {
if err != nil && core.IsParentErr(err) {
// Ignore the missing blocks. Handler should take care of anything that's missing.
glog.V(logger.Debug).Infof("Ignored block with missing parent (%d)\n", i)
- blocks = blocks[i:]
+ blocks = blocks[i+1:]
continue
} else if err != nil {