-
Notifications
You must be signed in to change notification settings - Fork 0
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 multiaddrs returned from provider record lookups #9
Comments
Many thanks for pointing this out 🙏 I'll get to work in delivering on option 1.
There is |
masih
added a commit
that referenced
this issue
Jan 31, 2023
When addrs are missing in a provider record, attempt to fill them by performing a second lookup over the `routing.PeerRouting` interface. Fixes #9
|
masih
added a commit
that referenced
this issue
Jan 31, 2023
When addrs are missing in a provider record, attempt to fill them by performing a second lookup over the `routing.PeerRouting` interface. Fixes #9
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
At the moment neither IPNI nor ipfs/specs#337 support peer record lookups. This means that, assuming no external discovery mechanisms, a peer that relies on this repo for finding a libp2p peer to talk to is going to have a bad time.
While it would be totally reasonable to think because the content routing interface returns a
peer.AddrInfo
that it has addresses and you can just pass it right along. Unfortunately, this is not the case. Most DHT server nodes only keep the peer record around and while they'll tell you the multiaddrs for that peer if they know them they may not have them. This is to deal with the fact that, unlike say Filecoin SPs, many clients of the IPFS Public DHT have non-stable IP addresses and so it wouldn't be reasonable to store those addresses for 24 (now 48) hours.There are two ways to resolve this issue:
FindPeer
to connect to the peer and get their addresses (you can just pull them out of the peerstore)I suspect that ultimately we will want both 1+2 and that 1 is the option that will move things along faster.
Note: I apologize for not having done this for you in
someguy
and even more for not having filed the issue on someguy for discovery purposes. I was expecting to tackle this either when routing.delegate.ipfs.io became a production service and/or when option 2 happened, but neither have occurred yet so here we are 😅.The text was updated successfully, but these errors were encountered: