Genesis Presets' para-id and the chain-extenstion para-id might diverge #7618
Labels
I2-bug
The node fails to follow expected behavior.
I10-unconfirmed
Issue might be valid, but it's not yet known.
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Description of bug
In the genesis config presets we assume the established system chain para-id, as can be seen here. Yet, in the polkadot-parachain chain-spec, we also have to pass the para-id to the chain extensions, as can be seen here.
If one is not careful (as it happened to me 🙈 in https://github.com/paritytech/polkadot-sdk/pull/7476/files?notification_referrer_id=NT_kwDOAkHJB7QxNDYzNzE3OTM0MjozNzg2NTczNQ#discussion_r1959229620) it can be that a discrepancy is introduced.
It would be better if we allow passing the para-id into the genesis preset builder, so that we can cleanly propagate the para-id from the top to the very button.
Steps to reproduce
No response
The text was updated successfully, but these errors were encountered: