libp2p / go-libp2p-examples

Example libp2p applications
MIT License
339 stars 145 forks source link

Question about FindPeers #59

Closed LiMoMoMo closed 5 years ago

LiMoMoMo commented 5 years ago

the PeerInfo got from FindPeers has EMPTY Addrs.

bootnode: A node: B node: C B and C all connected to bootnode A. B called discovery.Advertise(somestring), then C call routingDiscovery.FindPeers(somestring), it can get PeerInfo with B's ID and Addrs. But after maybe 10 minutes, C call routingDiscovery.FindPeers(somestring) only get PeerInfo with B's ID but has no Addrs, the node B is online when C calledroutingDiscovery.FindPeers(somestring).

After reboot B, C can get Addrs from routingDiscovery.FindPeers(somestring) immediatly.