Skip to content

Commit

Permalink
unixfs/feather: stop checking for the root CID of received cars
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorropo committed Oct 8, 2023
1 parent c37e4af commit b0fa2b7
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions unixfs/feather/entry.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,6 @@ func DownloadFile(c cid.Cid) (io.ReadCloser, error) {
if h.Version != supportedVersion {
return nil, fmt.Errorf("unsupported version %d instead of %d", h.Version, supportedVersion)
}
if len(h.Roots) != 1 {
return nil, fmt.Errorf("header has more roots than expected %d instead of 1", len(h.Roots))
}
if h.Roots[0] != c {
return nil, fmt.Errorf("header root don't match, got %s instead of %s", cidStringTruncate(h.Roots[0]), c.String())
}

good = true

Expand Down

0 comments on commit b0fa2b7

Please sign in to comment.