probe-lab / go-kademlia

Generic Go Kademlia implementation
Other
17 stars 4 forks source link

Only add reachable peers to the routing table #53

Closed guillaumemichel closed 10 months ago

guillaumemichel commented 1 year ago

Ensure that we only add nodes that are actually able to answer our Kademlia requests to the routing table. When refreshing the routing table, we should make sure that the nodes still answer Kademlia requests correctly.

In the IPFS KadDHT, this check can be done by sending a Kademlia GET_PROVIDERS or FIND_NODE RPC, and if the probed peer provides a valid response we can add/keep it in the routing table.

References

iand commented 11 months ago

This is covered by the design for the candidate queue in #45

iand commented 10 months ago

Done