-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minimum DataSize
value when validating CARv2 header
#310
Comments
Oh yeah, it needs an inner header.. Doesn't need a CID though. I think But we need to test what even works with both v0 and v2 CARv1 readers, maybe they don't even like that. |
If no roots are needed do you recall the rationale for this by any chance? |
Why yes I do! (btw I thought we'd removed that for the v2 reader, but sadly not go-car/v2/internal/carv1/car.go Lines 132 to 134 in 7ba9372
go-car was originally designed for Filecoin deals, a single root, which we widened a little for general use but never removed the >0 restriction because we didn't want to upset the Lotus apple-cart (or is that a Lotus cart?). js-car allows for zero roots, which can be useful for "this is just a bundle of blocks" and IIRC web3.storage and some of their backend stuff are using CARs in this way. |
Interesting thank you |
Question: What should the minimum accepted
DataSize
value be in a CARv2 header?See discussion:
The text was updated successfully, but these errors were encountered: