chain-spec-builder: Automatically cross check --para-id
flag with ParachainInfo
genesis state.
#6861
Labels
C1-mentor
A task where a mentor is available. Please indicate in the issue who the mentor could be.
D0-easy
Can be fixed primarily by duplicating and adapting code by an intermediate coder.
I5-enhancement
An additional feature request.
Currently we do no check for correctness of para IDs in the chain-spec-builder.
Example
Executing this command will create a simple chain spec.
Ecerpt from
chain_spec.json
:There is a clear mismatch between the genesis state of the parachain info pallet and the para id in the client spec. This is expected, as the genesis state is coming from the runtime.
Solution
The
chain-spec-builder
could make an exception for theParachainInfo
crate and automatically align the para ids. I can not think of a use-case where it makes sense to have a mismatch there. We can print out a log that highlights that the Id has been adjusted.The text was updated successfully, but these errors were encountered: