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

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

lidel
Copy link
Member

@lidel lidel commented Apr 2, 2025

This PR makes MFS provider described in ipfs/kubo#10386 possible.
Kubo PR that uses this PR: ipfs/kubo#10754

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
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.

3 participants