浏览代码

eth/downloader: remove unnecessary condition (#22052)

jk-jeongkyun 4 年之前
父节点
当前提交
653e8b9dd9
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      eth/downloader/queue.go

+ 0 - 3
eth/downloader/queue.go

@@ -893,9 +893,6 @@ func (q *queue) deliver(id string, taskPool map[common.Hash]*types.Header,
 		return accepted, nil
 	}
 	// If none of the data was good, it's a stale delivery
-	if errors.Is(failure, errInvalidChain) {
-		return accepted, failure
-	}
 	if accepted > 0 {
 		return accepted, fmt.Errorf("partial failure: %v", failure)
 	}