Skip to content

chainSpec: support for injecting paras into RuntimeGenesisConfigPatch#1300

Merged
pepoviola merged 6 commits into
mainfrom
mku-chainspec-followup
Sep 4, 2023
Merged

chainSpec: support for injecting paras into RuntimeGenesisConfigPatch#1300
pepoviola merged 6 commits into
mainfrom
mku-chainspec-followup

Conversation

@michalkucharczyk

@michalkucharczyk michalkucharczyk commented Sep 1, 2023

Copy link
Copy Markdown
Contributor

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

Comment thread javascript/packages/orchestrator/src/chainSpec.ts Outdated
Comment thread javascript/packages/orchestrator/src/chainSpec.ts
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>
Comment thread javascript/packages/orchestrator/src/chainSpec.ts Outdated
Comment thread javascript/packages/orchestrator/src/chainSpec.ts Outdated
@michalkucharczyk

Copy link
Copy Markdown
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
Copy Markdown
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
@pepoviola
pepoviola deleted the mku-chainspec-followup branch September 4, 2023 10:35
@michalkucharczyk

michalkucharczyk commented Sep 4, 2023

Copy link
Copy Markdown
Contributor Author

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