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 9, 2023
1 parent 0b05316 commit a15ede4
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 @@ -105,12 +105,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 a15ede4

Please sign in to comment.