probe-lab / go-kademlia

Generic Go Kademlia implementation
Other
17 stars 4 forks source link

Add libp2p notifee to IpfsDHT #23

Open guillaumemichel opened 1 year ago

guillaumemichel commented 1 year ago

https://github.com/libp2p/go-libp2p-kad-dht uses the libp2p notifee mechanism to add remote nodes to its routing table and peerstore. A similar mechanism should be implemented on the libp2p endpoint.

https://github.com/libp2p/go-libp2p-kad-dht/blob/978cb74f5fdf846e09d5769bb4dfb9f962135c38/subscriber_notifee.go

As it requires access to the libp2p host and it has an impact on the routing table, there are 2 solutions:

iand commented 1 year ago

Will move issue to go-libp2p-kad-dht for KadDHT in v2