-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Missing "rsa" feature should not silently fail kademlia handshakes #5871
Comments
Could you provide some output logs? And did you have any other crypto feature ( We should already output a |
Are you using the default ipfs bootstraps or bootstrap with rsa public keys? If so you would need to enable the "rsa" feature. Same with the other keys such as |
The error I encountered is exactly the same as when you run the ipfs-kad example from the repo, but remove the "rsa" feature there as well. I don't see any output hinting at the underlying problem. I don't know if that is feasible, but ideally I'd get a speaking error about the missing feature either at build time or at least immediately on node startup, crashing the program.
Another hint: The README has a mistake, imho: The command to run it (if you do want to specify a peer id) is |
When you log in the However, because of how our dns transport reports errors when resolving dns addresses, not all transport errors from inner transports are included in this event.
The |
Thank you very much for the analysis and explanation. I will keep Does this mean that when I only enable With regards to whether I want to work on it: Want? Yeah sure. But like I said, I'm relatively new to Rust, unfamiliar with the rust-libp2p code base as well as the details of the network strategies employed therein. Given your explanation I may be able to muddle through, but I also don't see me finding the time in the near future, tbh. So I suppose I could check back here eventually and see if it's still open, but that may be a while |
Depends on what crypto keys are generally used by the nodes in your network. But yes if you want to be sure you can just enable all of them. |
Description
Please excuse my use of inaccurate terms and lack of understanding. I'm just starting with libp2p.
I'm not sure if this perhaps better be a bug report.
Requests should not silently fail when the "rsa" feature isn't activated.
Motivation
So I've built a node to the point where I'm able to discover peers via kademlia. There was one harsh bump in the road to get there, which was that initially all outgoing requests to the bootstrap nodes almost immediately failed, no explanation given. It took me a few hours of meticulously comparing my implementation with the examples from the repo until I tried adding the "rsa" feature, which fixed it. I can only guess why that's needed, but I don't understand why missing this feature doesn't fail loudly. This is one of the points where I'd expect a
panic!
, no?Current Implementation
Currently everything just runs, just not successfully at all
Are you planning to do it yourself in a pull request?
No, lack of experience
The text was updated successfully, but these errors were encountered: