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

Support build-spec for other chains than Polkadot#1567

Merged
bkchr merged 2 commits intomasterfrom
bkchr-support-loading-native-runtime-by-file-name
Aug 11, 2020
Merged

Support build-spec for other chains than Polkadot#1567
bkchr merged 2 commits intomasterfrom
bkchr-support-loading-native-runtime-by-file-name

Conversation

@bkchr
Copy link
Member

@bkchr bkchr commented Aug 11, 2020

The problem when building a chain specification is that you require the
native runtime to parse the json file (assuming the chain spec is not
raw yet). Before this pr we could only overwrite the native runtime when
running the node using force_*. This pr now adds support to load the
native runtime when the filename starts with the name of the chain. So,
when usng build-spec --chain rococo-something-else.jon it will use the
rococo native runtime to load the chain spec.

Fixes: #1565

The problem when building a chain specification is that you require the
native runtime to parse the json file (assuming the chain spec is not
raw yet). Before this pr we could only overwrite the native runtime when
running the node using `force_*`. This pr now adds support to load the
native runtime when the filename starts with the name of the chain. So,
when usng `build-spec --chain rococo-something-else.jon` it will use the
rococo native runtime to load the chain spec.
@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. labels Aug 11, 2020
Copy link
Contributor

@riusricardo riusricardo left a comment

Choose a reason for hiding this comment

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

👍 It fixes the issue.

Co-authored-by: Andronik Ordian <write@reusable.software>
@ordian ordian added A8-mergeoncegreen and removed A0-please_review Pull request needs code review. labels Aug 11, 2020
@bkchr bkchr merged commit 78c8a64 into master Aug 11, 2020
@bkchr bkchr deleted the bkchr-support-loading-native-runtime-by-file-name branch August 11, 2020 11:06
ordian added a commit that referenced this pull request Aug 12, 2020
* master:
  Network bridge refactoring impl (#1537)
  Augment Implementer's Guide XCMP docs (#1569)
  Support `build-spec` for other chains than Polkadot (#1567)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cannot export and use rococo-local chain spec

3 participants