-
Notifications
You must be signed in to change notification settings - Fork 451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no peer:connect event with autoDial #664
Comments
This is a usability bug. We should be throwing an error on If you're intentionally not using crypto for development/testing purposes you can use Plaintext, |
Thanks ! yes, an error thrown would help. I've not seen either that encryption was mandatory. This should be added in documentation. Dealing with this setup, to better understand, does [MulticastDNS.tag] or mdns be used ? And If autoDial is false, how is it possible to dial a peer on peer:discovery event, as peerid has no multiaddrs whereas dial() requires them ? |
@olivier-nerot I will have a look into the docs to see where we have these inconsistencies and also add the error and docs for the required encryption.
We aim to use https://github.com/libp2p/js-libp2p-mdns/blob/master/src/index.js#L104 Its value is
When a |
Thanks a lot. I understand it better. To help, you have |
With libp2p V0.28, peer:connect events seems not to be fired
With the same setup, if I launch
libp2p.start()
from another node, thepeer:discovery
is well logged, but notpeer:connect
. I thought theautoDial:true
should make a peer dials other discovered peers automatically.I've tried also to call
libp2p.dial(peerId)
into the peer:discovery event, butpeerId
has nomultiaddrs
value, and have not found how to dial a discovered peer.The documentation is sometimes confusing with this discovery process (for example, some explains to use
mdns
, other tells to use[MulticastDNS.tag]
in config)The text was updated successfully, but these errors were encountered: