Skip to content

fix(provider): wait for fullrt crawl completion before providing#11137

Merged
lidel merged 3 commits into
masterfrom
fix/provider-fullrt-bootstrap
Jan 9, 2026
Merged

fix(provider): wait for fullrt crawl completion before providing#11137
lidel merged 3 commits into
masterfrom
fix/provider-fullrt-bootstrap

Conversation

@guillaumemichel

Copy link
Copy Markdown
Member

Fixes #11085

Supersedes libp2p/go-libp2p-kad-dht#1214

Creates a wrapper around the fullrt.FullRT DHT, whose GetClosestPeers() method is used by the Sweeping Provider, and make GetClosestPeers() error as long as the initial network crawl isn't over.

It results in the provider being in Disconnected state until the initial network crawl is complete. All provide operations will start when the node comes Online after the crawl is complete. The provider's connectivity status can be monitored with the ipfs provide stat command.


I prefer this approach compared with libp2p/go-libp2p-kad-dht#1214, since it doesn't expose the convoluted FullRT implementation details in the provider module.

@guillaumemichel guillaumemichel requested a review from a team as a code owner January 9, 2026 13:45
@lidel lidel self-assigned this Jan 9, 2026

@lidel lidel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm, but I would still do libp2p/go-libp2p-kad-dht#1214 for improved visibility in logs

@lidel lidel merged commit 07ea37e into master Jan 9, 2026
15 checks passed
@lidel lidel deleted the fix/provider-fullrt-bootstrap branch January 9, 2026 20:17
@lidel lidel mentioned this pull request Jan 22, 2026
67 tasks
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.

DHT Sweep only sees 1 Region when Accelerated Client is enabled

3 participants