Always include peer ID in the multiaddrs returned by Transports protocol query #1555
Closed
4 of 9 tasks
Labels
kind/enhancement
Kind: Enhancement
Checklist
Ideas
.Boost component
What is the motivation behind this feature request? Is your feature request related to a problem? Please describe.
Boost Transports protocol offers a way to query the list of transports offered by a node. However the multiaddrs returned by the transports do not always contain the peer ID over which the data can be retrieved.
Peer ID is only included when the addrs are populated from a libp2p host that is separate from node's host. This is because
Host.Addrs()
does not include peer ID in the returned addrs.Describe the solution you'd like
Always include peer ID in the multiaddrs returned. This removes the need for implicit assumption that when peer ID is not specified it should be the same as node peer ID.
Describe alternatives you've considered
Not doing this would require extra interaction to get the peer ID of the node.
Additional context
No response
The text was updated successfully, but these errors were encountered: