Libp2p dialer should try to find multiaddrs for a given peer if it does not know any #901
Labels
exp/intermediate
Prior experience is likely helpful
help wanted
Seeking public contribution on this issue
kind/enhancement
A net-new feature or improvement to an existing feature
status/ready
Ready to be worked
Type: Enhancenment
Description:
We currently recommend users to do
libp2p.dial(peerId)
to dial peers. This will obviously fail if multiaddrs for the given peer were not previously added to the addressBook (either manually, or via a discovery mechanism/DHT/rendezvous...)If libp2p has a
peer-routing
module, it should perform a lookup in order to try to find multiaddrs for the given peer, before simply failing with "no available multiaddrs for the given peer"Context: libp2p/js-libp2p-interfaces#85
The text was updated successfully, but these errors were encountered: