libp2p / go-libp2p-kad-dht

A Kademlia DHT implementation on go-libp2p
https://github.com/libp2p/specs/tree/master/kad-dht
MIT License
519 stars 222 forks source link

Fix Routing Table Refresh after we have a SearchByKadId RPC #556

Open aarshkshah1992 opened 4 years ago

aarshkshah1992 commented 4 years ago

We should have a SearchByKadId RPC which allows us to search for a key in the network using it's DHT Id in the XOR space and then revisit how we refresh the Routing Table/have better tests.

TODO

Also,

Nice to have:

aarshkshah1992 commented 4 years ago

@Stebalien @aschmahmann.

aschmahmann commented 4 years ago

Thanks for filing the issue on this, I thought we'd already filed this when we first hacked in the GenRandPeerID function but I guess not.

Worth noting that the outlier here isn't really the bucket refreshing but the FindPeer RPC. Tagging https://github.com/libp2p/go-libp2p/issues/784 as a reminder.

aarshkshah1992 commented 4 years ago

@aschmahmann I am not sure what you mean.

I understand that the GetClosestPeers RPC needs to take a kadId and move away from using the FindPeer RPC. However, how is the FindPeer issue linked to what we are trying to do here ?

aarshkshah1992 commented 4 years ago

@jacobheun For the 0.6 milestone.