소스 검색

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)
 	}