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

feat: NewDAGProvider to walk partial DAGs in offline mode #905

Merged
merged 20 commits into from
Apr 9, 2025

Conversation

lidel
Copy link
Member

@lidel lidel commented Apr 2, 2025

More context:

This PR is local continuation of #847 (in actuality, it was @hsanjuan rewriting most of original code) allowing for use in ipfs/kubo#10754 without pointing at a fork.

PsychoPunkSage and others added 13 commits March 13, 2025 17:26
Signed-off-by: Abhinav Prakash <[email protected]>
Signed-off-by: Abhinav Prakash <[email protected]>
The DAG provider creates a KeyChanFunc for all the CIDs found traversing the
merkledag from given root.

It can be used to provide specific DAGs (i.e. MFS) from their root.
This adds a SkipNotFound option to the FetcherConfig skips branch traversal when the blockservice returns ipld.NotFound.

The result is that the fetcher is able to traverse dags in offline mode.
@lidel lidel requested a review from hsanjuan April 2, 2025 19:14
Copy link
Member Author

@lidel lidel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, tested locally with ipfs/kubo#10754 and expected CIDs are provided as expected

the skip "ERROR" was moved to debug log level as it did not seem to block root from being correctly provided – ipfs/kubo#10754 (comment)

@lidel lidel merged commit bbaf2e1 into main Apr 9, 2025
13 of 19 checks passed
@lidel lidel deleted the issue-10386-kubo branch April 9, 2025 16:28
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.

4 participants