-
Notifications
You must be signed in to change notification settings - Fork 813
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate para_id
field from chain-specification
#7384
Comments
would like to work on this @skunert could you give more references? |
Hey @Stephenlawrence00 , thanks for your interest in tackling this! The first step would be to take a look at #75, which is a prerequisite for this ticket. There you need to introduce a new runtime API that exposes the parachain ID. Here you can take a look at how runtime APIs are typically defined (just examples):
You will need to define a new one that exposes a method to fetch the para id from a runtime and implement it for all the runtimes in the |
I am not sure if this is necessary. The chainspec file is distributed all over the places and it will just be extra work to require them to be updated for no benefits that I can see. |
That is true. However, previously when there was a mismatch between the IDs, you would be met with the error message that I described in the opening description. After this issue you could have whatever |
We can have the node to validate the para id in chainspec is matching the one provided by runtime API if present and print some nice error message to tell user something isn't right |
Prerequisites: #75
The 'para_id' field in the chain specification can be removed once we implement a method to query the ParaId embedded in a runtime.
Users frequently encounter the error: "included head not present in relay storage proof". This occurs when the node-side incorrectly constructs the relay chain storage proof for the parachain inherent using a mismatched ParaId.
Implementation Plan:
GetParachainId
#75The text was updated successfully, but these errors were encountered: