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

use explicit protocol version (local is not safe) #225

Merged

Conversation

antiochp
Copy link
Member

This is a bit tricky.

A 2.1.0 node uses protocol version 2 internally via ProtocolVersion::local().
But for backward compatibility expects txs via the push api (from the wallet) in proto version 1.

Building grin-wallet pulls in ser from node repo.
So we cannot use ProtocolVersion::local() in the wallet repo.

This only surfaced as an issue once we tagged node and wallet repos and started building against these.

@antiochp antiochp added the bug Something isn't working label Sep 26, 2019
@antiochp antiochp added this to the 2.1.0 milestone Sep 26, 2019
@antiochp
Copy link
Member Author

Going to merge this now - we need to explicitly define ProtocolVersion(1) like this for 2.1.0 wallet to interact successfully with 2.1.0 node.

@antiochp antiochp merged commit 291bc2e into mimblewimble:master Sep 26, 2019
@antiochp antiochp deleted the explicit_wallet_proto_version branch September 26, 2019 13:36
yyangli pushed a commit to mwcproject/mwc-wallet that referenced this pull request May 13, 2020
…to_version

use explicit protocol version (local is not safe)
antiochp added a commit to antiochp/grin-wallet that referenced this pull request Aug 7, 2020
…to_version

use explicit protocol version (local is not safe)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant