Skip to content

Commit 6d38f88

Browse files
Merge pull request #658 from libp2p/kad/clarify-bootstrap
kad: clarify bootstrap process
2 parents b5f7fce + e2616f2 commit 6d38f88

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

kad-dht/README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -368,14 +368,13 @@ the wire format and keep their routing table up-to-date, especially with peers
368368
closest to themselves.
369369

370370
The process runs once on startup, then periodically with a configurable
371-
frequency (default: 5 minutes). On every run, we generate a random peer ID and
372-
we look it up via the process defined in [peer routing](#peer-routing). Peers
373-
encountered throughout the search are inserted in the routing table, as per
374-
usual business.
375-
376-
This is repeated as many times per run as configuration parameter `QueryCount`
377-
(default: 1). In addition, to improve awareness of nodes close to oneself,
378-
implementations should include a lookup for their own peer ID.
371+
frequency (default: 10 minutes). On every run, we generate a random peer ID for
372+
every non-empty routing table's k-bucket and we look it up via the process
373+
defined in [peer routing](#peer-routing). Peers encountered throughout the
374+
search are inserted in the routing table, as per usual business.
375+
376+
In addition, to improve awareness of nodes close to oneself, implementations
377+
should include a lookup for their own peer ID.
379378

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

0 commit comments

Comments
 (0)