go-libp2p: peer discovery fail
Hi guy’s,
in the last few day’s I have been playing around with content / peer discovery. Discovery of content work’s quite nice tho it’s a bid slow (I wonder what it’s so fast when using IPFS directly) but peer discovery doesn’t work. When I search for a bootstrapping node (e.g. QmSoLer265NRgSp2LA3dPaeykiS1J6DifTC88f5uVQKNAd) it fails after 2 - 5 minutes because the peer can’t be found (error message is: routing: not found). I created an test repo here which you can use to reproduce the problem. The interesting thing is that I can call FindPeer on the DHT with any string. There is no validation, which might mean that I am using the wrong ID (tho I am sure that this QmSoLer265NRgSp2LA3dPaeykiS1J6DifTC88f5uVQKNAd is a peer id in the libpp2 context). Can someone point me in the right direction where I can find help? I also had a look at whyrusleeping’s chat example since it makes use of the DHT. But there it seem’s to work.
Thanks for you help, Florian
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 23 (23 by maintainers)
Awesome! That’s why it exists. It’s just kind of awkward when the simple test case of creating two peers and connecting them to each other doesn’t just work out of the box 😆.
Thanks! I’ll take a look.