Skip to content
Unverified Commit 89b41c57 authored by bader y's avatar bader y Committed by GitHub
Browse files

Add parachain related parameters to `chain-spec-builder` (#4889)



When using with `polkadot-parachain`, you usually need to specify the
`relay_chain` and `para_id` fields in the chain spec.

With this PR it can be achieved by specifying newly added `--para-id`
and `--relay-chain` command line args, e.g:
```
chain-spec-builder create -r _runtime.wasm  --para-id 100 --relay-chain xxx default
```

This was implemented by simple _json_ blobs merging.

Additionally unit tests covering basic functionality were added.

Also adds a fix for not overwriting the chain spec with the default
config each time, swallowing not standard fields is also fixed.

Fixes: #4873

---------

Co-authored-by: default avatarSebastian Kunert <[email protected]>
Co-authored-by: default avatarMichal Kucharczyk <[email protected]>
parent 4d2f7932
Pipeline #495296 waiting for manual action with stages
in 34 minutes and 9 seconds