From 3075d5fd61acdbbd3752f6b84871862974390ca4 Mon Sep 17 00:00:00 2001 From: jeongkyun-oh Date: Tue, 22 Dec 2020 07:35:20 +0900 Subject: [PATCH] eth/downloader: removed unnecessary condition --- eth/downloader/queue.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/eth/downloader/queue.go b/eth/downloader/queue.go index 2150842f8e82..ac7edc2c68a7 100644 --- a/eth/downloader/queue.go +++ b/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) }