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

Protocol version type safety #2811

Merged
merged 3 commits into from
May 8, 2019

Conversation

antiochp
Copy link
Member

@antiochp antiochp commented May 7, 2019

  • Introduce a ProtocolVersion(u32) struct for safely representing protocol versions

Related #2809.

This gives us a nice struct on which to build some protocol_version support while preventing accidental use of arbitrary u32 values.

p2p/src/msg.rs Outdated Show resolved Hide resolved
@antiochp antiochp requested review from ignopeverell and hashmap May 8, 2019 12:27
@antiochp antiochp merged commit 8d5f73e into mimblewimble:master May 8, 2019
@antiochp antiochp deleted the protocol_version_type_safety branch May 8, 2019 19:51
@antiochp antiochp added this to the 1.1.0 milestone Jun 5, 2019
@antiochp antiochp added the release notes To be included in release notes (of relevant milestone). label Jun 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release notes To be included in release notes (of relevant milestone).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants