浏览代码

eth/downloader: drop block

obscuren 10 年之前
父节点
当前提交
f8c27d7159
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      eth/downloader/downloader.go

+ 1 - 1
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 {