Skip to content

Commit

Permalink
Merge pull request #658 from libp2p/kad/clarify-bootstrap
Browse files Browse the repository at this point in the history
kad: clarify bootstrap process
  • Loading branch information
guillaumemichel authored Feb 4, 2025
2 parents b5f7fce + e2616f2 commit 6d38f88
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions kad-dht/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -368,14 +368,13 @@ the wire format and keep their routing table up-to-date, especially with peers
closest to themselves.

The process runs once on startup, then periodically with a configurable
frequency (default: 5 minutes). On every run, we generate a random peer ID and
we look it up via the process defined in [peer routing](#peer-routing). Peers
encountered throughout the search are inserted in the routing table, as per
usual business.

This is repeated as many times per run as configuration parameter `QueryCount`
(default: 1). In addition, to improve awareness of nodes close to oneself,
implementations should include a lookup for their own peer ID.
frequency (default: 10 minutes). On every run, we generate a random peer ID for
every non-empty routing table's k-bucket and we look it up via the process
defined in [peer routing](#peer-routing). Peers encountered throughout the
search are inserted in the routing table, as per usual business.

In addition, to improve awareness of nodes close to oneself, implementations
should include a lookup for their own peer ID.

Every repetition is subject to a `QueryTimeout` (default: 10 seconds), which
upon firing, aborts the run.
Expand Down

0 comments on commit 6d38f88

Please sign in to comment.