-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Copy link
Labels
difficulty:easygetting-startedIssues that can be tackled if you don't know the internals of libp2p very wellIssues that can be tackled if you don't know the internals of libp2p very wellhelp wanted
Description
Description
Change the endpoint
type to Dialer
, extracting it from ConnectedPoint
.
Motivation
Currently in case of DialError
with WrongPeerId
the ConnectedPoint
is returned, which can contain Listener
, which can't happen, because we are the dialing side. Replacing ConnectedPoint
with Dialer
can help to resolve this ambiguity and eliminate client code assertions.
ConnectedPoint
endpoint type in WrongPeerId
was introduced in this PR, which was merged here.
The original discussion that lead to this issue is in the substrate PR that changes the error printed when we connect to a bootnode that provides a different than expected peer id.
Are you planning to do it yourself in a pull request?
Maybe. Yes.
Metadata
Metadata
Assignees
Labels
difficulty:easygetting-startedIssues that can be tackled if you don't know the internals of libp2p very wellIssues that can be tackled if you don't know the internals of libp2p very wellhelp wanted