From a15ede4851e859830bfcafc79dd2616cf82c839a Mon Sep 17 00:00:00 2001 From: Jorropo Date: Sun, 8 Oct 2023 22:00:17 +0200 Subject: [PATCH] unixfs/feather: stop checking for the root CID of received cars --- unixfs/feather/entry.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/unixfs/feather/entry.go b/unixfs/feather/entry.go index 4b6cb4fc72..e88dfffc2a 100644 --- a/unixfs/feather/entry.go +++ b/unixfs/feather/entry.go @@ -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