Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit f378129

Browse files
author
Alan Shaw
authored
docs: add DHT config documentation (#1951)
License: MIT Signed-off-by: Alan Shaw <[email protected]>
1 parent 29072a5 commit f378129

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,11 @@ You can see the bundle in action in the [custom libp2p example](examples/custom-
343343
- `[PeerDiscovery.tag]` (object): configuration for a peer discovery module
344344
- `enabled` (boolean): whether this module is enabled or disabled
345345
- `[custom config]` (any): other keys are specific to the module
346+
- `dht` (object): Configuration options for the DHT
347+
- `enabled` (boolean): whether the DHT is enabled or not (default `true` in Node.js and `false` in the browser)
348+
- `kBucketSize` (number): bucket size (default `20`)
349+
- `randomWalk` (object): configuration for random walk
350+
- `enabled` (boolean): whether random DHT walking is enabled (default `false`)
346351

347352
##### `options.connectionManager`
348353

0 commit comments

Comments
 (0)