Unverified Commit 653e8b9d authored by jk-jeongkyun's avatar jk-jeongkyun Committed by GitHub

eth/downloader: remove unnecessary condition (#22052)

parent ab0979f9
...@@ -893,9 +893,6 @@ func (q *queue) deliver(id string, taskPool map[common.Hash]*types.Header, ...@@ -893,9 +893,6 @@ func (q *queue) deliver(id string, taskPool map[common.Hash]*types.Header,
return accepted, nil return accepted, nil
} }
// If none of the data was good, it's a stale delivery // If none of the data was good, it's a stale delivery
if errors.Is(failure, errInvalidChain) {
return accepted, failure
}
if accepted > 0 { if accepted > 0 {
return accepted, fmt.Errorf("partial failure: %v", failure) return accepted, fmt.Errorf("partial failure: %v", failure)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment