Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Return RuntimeVersion of overwritten/substituted wasm binary #13066

Merged
merged 4 commits into from
Jan 5, 2023

Conversation

bkchr
Copy link
Member

@bkchr bkchr commented Jan 4, 2023

Before this pr we always have returned the RuntimeVersion of the on chain wasm binary, even if there was an overwrite/substitute. This pull requests fixes this by returning always the RuntimeVersion of the used wasm binary. Most of the time these runtime versions should be the same. However, we already had different RuntimeVersion which made the node not detect the correct runtime api version (which are part of the runtime version).

@bkchr bkchr added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit labels Jan 4, 2023
@bkchr bkchr requested a review from a team January 4, 2023 15:55
Copy link
Contributor

@melekes melekes left a comment

Choose a reason for hiding this comment

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

👍

client/service/src/client/call_executor.rs Outdated Show resolved Hide resolved
client/service/src/client/call_executor.rs Show resolved Hide resolved
Co-authored-by: Anton <anton.kalyaev@gmail.com>
Copy link
Contributor

@melekes melekes left a comment

Choose a reason for hiding this comment

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

👍 (code-wise; don't know enough to reason about business logic)

@bkchr bkchr merged commit 6376f13 into master Jan 5, 2023
@bkchr bkchr deleted the bkchr-substitute-return-runtime-version branch January 5, 2023 12:45
ltfschoen pushed a commit to ltfschoen/substrate that referenced this pull request Feb 22, 2023
…ytech#13066)

* Adds test

* Ensure we are using the runtime version of the override/substitute wasm

* Update client/service/src/client/call_executor.rs

Co-authored-by: Anton <anton.kalyaev@gmail.com>

Co-authored-by: Anton <anton.kalyaev@gmail.com>
ark0f pushed a commit to gear-tech/substrate that referenced this pull request Feb 27, 2023
…ytech#13066)

* Adds test

* Ensure we are using the runtime version of the override/substitute wasm

* Update client/service/src/client/call_executor.rs

Co-authored-by: Anton <anton.kalyaev@gmail.com>

Co-authored-by: Anton <anton.kalyaev@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D3-trivial 🧸 PR contains trivial changes in a runtime directory that do not require an audit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants