-
Notifications
You must be signed in to change notification settings - Fork 357
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
Retrieve state_version
from WASM in export-genesis-state
subcommand
#3164
base: master
Are you sure you want to change the base?
Conversation
…ad of a custom implementation
WASM runtime size check:Compared to target branchMoonbase runtime: 2416 KB (no changes) 🚨 Moonbeam runtime: 2408 KB (no changes) 🚨 Moonriver runtime: 2384 KB (no changes) ✅ Compared to latest release (runtime-3500)Moonbase runtime: 2416 KB (+464 KB compared to latest release) 🚨 Moonbeam runtime: 2408 KB (+472 KB compared to latest release) 🚨 Moonriver runtime: 2384 KB (+448 KB compared to latest release) |
Coverage Report@@ Coverage Diff @@
## master manuel/define-state-version-from-wasm +/- ##
=========================================================================
- Coverage 74.52% 74.51% -0.01%
Files 380 380
+ Lines 96102 96103 +1
=========================================================================
Hits 71611 71611
+ Misses 24491 24492 +1
|
let state_version = sc_chain_spec::resolve_state_version_from_wasm::< | ||
_, | ||
HashingFor<Block>, | ||
>(&storage, &executor)?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When running moonbeam export-genesis-state --chain moonriver
, the expected state_version
is StateVersion::V1
, but it returns StateVersion::V0
.
I think the issue is on the executor
.
What does it do?
Retrieve
state_version
from WASM blob inexport-genesis-state
subcommand.What important points should reviewers know?
Is there something left for follow-up PRs?
What alternative implementations were considered?
Are there relevant PRs or issues in other repositories (Substrate, Polkadot, Frontier, Cumulus)?
What value does it bring to the blockchain users?