Skip to content

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 <abhinav.prakash319@gmail.com>
Signed-off-by: Abhinav Prakash <abhinav.prakash319@gmail.com>
Signed-off-by: Abhinav Prakash <abhinav.prakash319@gmail.com>
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.

5 participants