Unverified Commit 78c8a646 authored by Bastian Köcher's avatar Bastian Köcher Committed by GitHub
Browse files

Support `build-spec` for other chains than Polkadot (#1567)



* Support `build-spec` for other chains than Polkadot

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.

* Apply suggestions from code review

Co-authored-by: default avatarAndronik Ordian <[email protected]>

Co-authored-by: default avatarAndronik Ordian <[email protected]>
parent 8198a100
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment