forked from libp2p/rust-libp2p
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
protocols/kad: Make automatic kbucket update on connect optional
Add an option to `KademliaConfig` to prevent Kademlia from automatically adding a node to its kbuckets whenever it is notified of a new connection to that node. This enables a user of Kademlia to control which nodes are part of the local view of the DHT. E.g. in the case of Substrate this enables one to exclude light-clients from the local view of the DHT. The default behaviour stays untouched.
- Loading branch information
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters