Explorar el Código

eth/downloader: remove unnecessary condition (#22052)

jk-jeongkyun hace 4 años
padre
commit
653e8b9dd9
Se han modificado 1 ficheros con 0 adiciones y 3 borrados
  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)
 	}