Skip to content
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

fix: traverser should skip over identity CIDs #439

Conversation

rvagg
Copy link
Member

@rvagg rvagg commented Sep 19, 2023

Fix is in ipldutil/traverser.go; without this, an identity CID in a DAG that contains a link to more blocks won't be properly traversed. Unsure how common this is in the real world, most identity CIDs are for chunks that are small enough that they can't fit a CID in but there are instances where people feel it worthwhile to inline chunks much larger than this (e.g.. The Filecoin chain itself has such inline CIDs too.

Matching go-graphsync PR.

@rvagg
Copy link
Member Author

rvagg commented Sep 19, 2023

Oh, and matching Lassie PR that uses and validates this: filecoin-project/lassie#426 (fails without this patch).

@rvagg
Copy link
Member Author

rvagg commented Sep 19, 2023

UGH! This was supposed to be to boost-graphsync .. thanks GitHub UI.

@rvagg rvagg closed this Sep 19, 2023
@rvagg rvagg deleted the rvagg/identity-traverse branch September 19, 2023 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant