-
Notifications
You must be signed in to change notification settings - Fork 14
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
feat: CAR order and dups parameters from IPIP-412 #87
Conversation
6f24b0a
to
c723fd2
Compare
This reverts commit 7dde477.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, thank you @hacdias for adding remaining tests
@laurentsenta mind taking a look if it is ok to merge & release?
We want Rhea/Saturn to be able to run these in their CI.
Co-authored-by: Laurent Senta <laurent@singulargarden.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, let's not hardcode CIDs in the code without leaving notes to future maintainers!
This PR creates tests for IPIP-412. Note the following:
ipip-412
branch in Kubo. Disable this before merging.dups=n
, then there are no duplicates. Ifdups=y
, then the blocks of the file are sent twice, by the order they show up in the DAG. This is tested withorder=dfs
.order=dfs
.order=unk
where I simply check if all the CIDs are present, but not exactly since the order can be unknown. This test also doesn't check for the order in the response content type because the gateway can answer with any order they want.