-
Notifications
You must be signed in to change notification settings - Fork 445
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
findProviders should return PeerIDs #899
Comments
The link does not properly route me to the correct place I think. This returns an async iterable if
I did not understand the inconsistency here. Let me know what I am missing |
Here is the snapshot of the conversation in that pull As per @achingbrain comment
Maybe it's all correct, because types seem to align now ipfs/js-ipfs-bitswap#304 |
I did not see that comment. So, you mean that Ok, so @achingbrain is right in the sense that libp2p should handle internally the multiaddrs storage in the AddressBook, which is what we currently do. The interface for contentRouting and peerRouting returns We should discuss this further, I would like to keep the multiaddrs to be returned. Currently, libp2p will auto-dial when multiaddrs are added to the Ideally, users will just dial with With all things considered, and as bitswap is not blocked on this, I would punt a decision here for after the connManager work + rendezvous/DHT |
I will move the issue to the interfaces repo, as this will mean changing the interface |
findProviders returns
{ id: PeerId, multiaddrs: Multiaddr[] }
js-libp2p/src/content-routing/index.js
Lines 43 to 52 in 8e1fc78
While bitswap seems to assume it returns
PeerId
s instead. For more context please seehttps://github.com/ipfs/js-ipfs-bitswap/pull/261/files#r587862380
The text was updated successfully, but these errors were encountered: