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.
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 KademliaGET_PROVIDERS
orFIND_NODE
RPC, and if the probed peer provides a valid response we can add/keep it in the routing table.References