storacha-network / freeway

🛣 Experimental IPFS HTTP gateway providing access to UnixFS data via CAR CIDs.
Other
14 stars 5 forks source link

Breadth-first on non-unixfs? #90

Open rvagg opened 1 year ago

rvagg commented 1 year ago

Getting the DAG from bafyreidlb5gb3b4znxiuej4d7sq43jho7f2ce2nndjyodyjdjurceucury, a dag-cbor block, contains 2 links, a dag-pb and a raw, the dag-pb, which comes first, has its own raw link inside it. So we have a DAG that would look like this if traversed depth-first:

But instead, from freeway we get what looks like breadth-first:

rvagg commented 1 year ago

Some more, this looks like a standard nft packing with image/file and metadata.json from the root. I have ~20 in the last 6 hours so this is regular enough to keep on showing up with a variety of CIDs.