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

Support version mode CLI options in send-message subcommand #1284

Merged
merged 1 commit into from
Jan 14, 2022

Conversation

svyatonik
Copy link
Contributor

closes #1283

So right now Rococo has runtime version 9141 and Wococo is 9140. "Release" relay thinks that both have 9140. Since they're testnets, this is fine (given that headers+messages relay is running with *-version-mode=Auto CLI option). But relay still uses 9140 when encoding messages from Wococo to Rococo, meaning that they'll be delivered, but dispatch will fail with MessageVersionSpecMismatch error. This PR allows message submitter to provide custom version or to read actual version from the target node.

@@ -110,6 +116,10 @@ impl SendMessage {

encode_call::preprocess_call::<Source, Target>(message, bridge.bridge_instance_index());
let target_call = Target::encode_call(message)?;
let target_spec_version = self
Copy link
Contributor Author

@svyatonik svyatonik Jan 14, 2022

Choose a reason for hiding this comment

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

That's the main change - instead of always using Target::RUNTIME_VERSION.spec_version below, I'm using version based on CLI flags

@acatangiu acatangiu merged commit f58fed7 into master Jan 14, 2022
@acatangiu acatangiu deleted the version-mode-in-send-message branch January 14, 2022 11:10
svyatonik pushed a commit that referenced this pull request Jul 17, 2023
* Node bump to v0.9.220

* Runtime version bump to 922 (#1283)

* Runtime version bump to 922

* Switch to 9220

* Update cargo.lock
serban300 pushed a commit to serban300/parity-bridges-common that referenced this pull request Mar 27, 2024
serban300 pushed a commit to serban300/parity-bridges-common that referenced this pull request Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support version mode cli option when message is being sent
2 participants