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

chainSpec: support for injecting paras into RuntimeGenesisConfigPatch #1300

Merged
merged 6 commits into from
Sep 4, 2023

Conversation

michalkucharczyk
Copy link
Contributor

@michalkucharczyk michalkucharczyk commented Sep 1, 2023

This PR proposes two fixes for manipulating chainSpec, which are required for paritytech/polkadot-sdk#1256:

  • runtime_genesis_config field is no longer part of RuntimeGenesisConfig for rococo runtimes. It was removed in chain-spec: getting ready for native-runtime-free world polkadot-sdk#1256, instead of this unified RuntimeGenesisConfigPatch field is available.
  • the RuntimeGenesisConfig patch contained in ChainSpec does not contain any default values for runtime genesis config. It only contains values that were overwritten by chain spec author. Since the para.para was not changed in rococo chain spec it is not contained in patch. We need to inject it.

For more info on RuntimeGenesisConfigPatch please refer to paritytech/polkadot-sdk#1256.

Step towards: paritytech/polkadot-sdk#25

michalkucharczyk and others added 4 commits September 1, 2023 10:22
Co-authored-by: Nikos Kontakis <wirednkod@gmail.com>
Co-authored-by: Nikos Kontakis <wirednkod@gmail.com>
@michalkucharczyk
Copy link
Contributor Author

All zombienet tests are green in paritytech/polkadot-sdk#1256: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/pipelines/386286

@pepoviola
Copy link
Collaborator

All zombienet tests are green in paritytech/polkadot-sdk#1256: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/pipelines/386286

Awesome, I can merge it and include in the next release if you are agree.
Thx!

@pepoviola pepoviola merged commit ccb0d91 into main Sep 4, 2023
9 checks passed
@pepoviola pepoviola deleted the mku-chainspec-followup branch September 4, 2023 10:35
@michalkucharczyk
Copy link
Contributor Author

michalkucharczyk commented Sep 4, 2023

Awesome, I can merge it and include in the next release if you are agree. Thx!

Would be great to have it in official version. It is backward compatible so should be safe. Thanks!

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