Skip to content

Conversation

@guillaumemichel
Copy link
Collaborator

Context: ipfs/kubo#10737

Problem

The crawler used by the Accelerated DHT Client crawls the network, and write all discovered addresses to the host's peerstore for 30 minutes, without checking them first. These addresses aren't flushed after identify is run. We end up with many stale addresses polluting the host peerstore.

Fix

The crawler has its own temporary peerstore, and only persists addresses reported by identify to the host peerstore for the required 30 minutes.

@guillaumemichel guillaumemichel requested a review from a team as a code owner February 27, 2025 15:58
@lidel lidel mentioned this pull request Feb 27, 2025
56 tasks
@guillaumemichel guillaumemichel merged commit 2c3a43e into master Mar 4, 2025
7 checks passed
@guillaumemichel guillaumemichel deleted the fix/crawler-peerstore branch March 4, 2025 09:49
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