-
Notifications
You must be signed in to change notification settings - Fork 864
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
Introduce new runtime api GetParachainId
#75
Comments
chainHead: Standardize `camelCase` for reported events
Should the same also be done for |
Could just be put into the metadata? |
I think this can be achieved with view functions? |
view function is pallet specific thing. runtime API is a runtime specific thing. in this case, runtime API is more sutiable |
Just want to clarify the implementation details since I feel it has been passed around but we've not made it official. I am personally out of context with how runtime APIs should be implemented, and I am curious about the approach. My understanding so far is that some core runtime apis sit in Can you confirm? cc @skunert @bkchr Also, maybe something is missing above? (e.g. not super sure how we enforce runtime implementors to provide implementations for the needed runtime APIs that are required by parachains/or other runtimes - but maybe this a generic part already checked at some point when building a certain runtime, or maybe we can't enforce it so don't need to worry about it). |
Yes, this should not go into the
So far, the node would have complained at build time. Generally we should implement checks for required apis and either disable functionality or stop the node if they are not available. This runtime api would fall into the category of stopping the node as without a parachain id we can not do anything :) |
This runtime api should be used to fetch the para id of a runtime and then can be used by the collator to use it. Then we can remove the para id from the chain spec.
(The runtime api should get a better name, the name in the title is only WIP :P)
The text was updated successfully, but these errors were encountered: