libp2p / go-libp2p-kad-dht

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

Decouple coord package from addressing #903

Closed iand closed 9 months ago

iand commented 9 months ago

Greatly simplifies the coord package. All addressing should be handled by the DHT's host peerstore.

Also align on using kadt.PeerID everywhere in the coord package. Probably all of this package could now be generic on Key and Node now.

Simplifies the Router interface since the coordinator doesn't need to interact with addressing.

Removes all the conversion functions :tada: