Skip to content

How to keep Kademlia peers connected #5495

Answered by guillaumemichel
Tianer1123 asked this question in Q&A
Discussion options

You must be logged in to vote

When multiple nodes participate a DHT, the DHT's routing table is going to store the addresses of some of the peers, following kademlia spec, so that it is able to open connections to these peers if needed.

If you need to keep some connections open, or store the addresses of more peers than what the routing table is doing, you would have to handle it yourself, because there is no peerstore implementation in rust-libp2p for now.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Tianer1123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants