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

Relax p2p rules around matching protocol versions #2764

Merged
merged 1 commit into from
Apr 24, 2019

Conversation

antiochp
Copy link
Member

We currently only allow peer connections if the "protocol version" is an exact match between us and the peer.
We will start refusing peer connections in either direction if we attempt to increment any protocol version numbers on the network.
This PR removes this rule and permits peer connections for any combination of protocol version values.

If/when we need to introduce thresholds or incompatible version checking in the future we can, but for now we just accept arbitrary version numbers.

Also - expose our version number via the TUI.

@antiochp antiochp force-pushed the relax_protocol_version branch from b271759 to 119a97d Compare April 19, 2019 11:38
@antiochp
Copy link
Member Author

cc @DavidBurkett
We're going to need to be more flexible if anybody decides to bump their protocol version number.

And we can reintroduce any constraints on "legacy" or minimum versions as necessary later.

@DavidBurkett
Copy link
Contributor

DavidBurkett commented Apr 19, 2019

So the way it was coded before, any increase in protocol version would've caused a network split? That doesn't seem very useful 😁. Glad you noticed this.

@antiochp
Copy link
Member Author

Yeah it was just placeholder code but inflexible placeholder code...

@antiochp antiochp added the bug label Apr 19, 2019
@antiochp antiochp added this to the 1.1.0 milestone Apr 19, 2019
@antiochp
Copy link
Member Author

We should get this merged in for 1.1.0 to be sure a decent number of nodes post 1.1.0 can support the protocol version number getting bumped.

@ignopeverell ignopeverell merged commit 19106b3 into mimblewimble:master Apr 24, 2019
@antiochp antiochp deleted the relax_protocol_version branch April 25, 2019 10:08
@antiochp antiochp added the release notes To be included in release notes (of relevant milestone). label Jun 5, 2019
@antiochp antiochp changed the title relax our p2p rules around matching protocol versions Relax p2p rules around matching protocol versions Jun 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug release notes To be included in release notes (of relevant milestone).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants