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

fix: peer record interop with go #739

Merged
merged 4 commits into from
Aug 27, 2020
Merged

fix: peer record interop with go #739

merged 4 commits into from
Aug 27, 2020

Conversation

jacobheun
Copy link
Contributor

@jacobheun jacobheun commented Aug 26, 2020

The peer record was using its string representation as the Record codec, which is not accurate, it should be a Uint8Array Uint8Array.from([3, 1]) (0x0301) instead of "libp2p-peer-record", this caused the record to be improperly marshaled.

@jacobheun
Copy link
Contributor Author

Interop is now passing in CI with this change using libp2p/interop#43

Copy link
Member

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

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

LGTM! 🎉

@jacobheun jacobheun merged commit c4c7ef9 into 0.29.x Aug 27, 2020
@jacobheun jacobheun deleted the fix/peer-records branch August 27, 2020 10:44
jacobheun added a commit that referenced this pull request Aug 27, 2020
* test: add go peer record interop test

* fix: correct the payload type of peer records

* chore: fix linting

* test: fix envelope test
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