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

pass peer_info around rather than peer_addr (includes protocol version) #2761

Merged
merged 1 commit into from
Apr 18, 2019

Conversation

antiochp
Copy link
Member

We discussed using PROTOCOL_VERSION to handle various changes to p2p msgs.
This PR changes the various adapter fns to pass around a ref to a PeerInfo rather than simply a PeerAddr.
The PeerInfo contains both the PeerAddr and the version.

This would allow the various handlers to handle msgs in a protocol version specific way, based on the peer version via the initial hand/shake msg.

@antiochp
Copy link
Member Author

cc @DavidBurkett

@DavidBurkett
Copy link
Contributor

Looks good to me!

@antiochp antiochp merged commit 13c6160 into mimblewimble:master Apr 18, 2019
@antiochp antiochp deleted the pass_peer_info_around branch April 18, 2019 13:11
@antiochp antiochp added this to the 1.1.0 milestone Jun 5, 2019
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.

3 participants