Skip to content
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

routedhost: fix decoding of relay peer ID #1644

Merged
merged 1 commit into from
Jul 7, 2022

Conversation

marten-seemann
Copy link
Contributor

A circuit multiaddr contains an encoded multiaddr, so we need to decode it: https://github.com/libp2p/specs/tree/master/addressing#p2p-circuit-relay-addresses

Not 100% sure that this is correct, please review carefully.

Copy link
Member

@Stebalien Stebalien left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is correct but now I'm really confused as to why we didn't catch this earlier. The "value" returned from ValueFromProtocol should be a peer ID encoded as a string.

@marten-seemann
Copy link
Contributor Author

This is correct but now I'm really confused as to why we didn't catch this earlier

No unit tests and very few integration tests for circuits...

@marten-seemann marten-seemann merged commit c5c75c0 into master Jul 7, 2022
@ajnavarro ajnavarro mentioned this pull request Aug 24, 2022
72 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants