-
Notifications
You must be signed in to change notification settings - Fork 52
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
Allow registering parathreads in pallet_registrar genesis #632
Conversation
…strar-parathreads
…strar-parathreads
…strar-parathreads
Coverage Report@@ Coverage Diff @@
## master tomasz-genesis-registrar-parathreads +/- ##
========================================================================
- Coverage 66.71% 66.63% -0.08%
+ Files 260 261 +1
- Lines 44818 44717 -101
========================================================================
- Hits 29897 29794 -103
+ Misses 14921 14923 +2
|
@@ -217,7 +217,7 @@ fn testnet_genesis( | |||
|
|||
let para_ids: Vec<_> = para_ids | |||
.into_iter() | |||
.map(|(para_id, genesis_data, _boot_nodes)| (para_id, genesis_data)) | |||
.map(|(para_id, genesis_data, _boot_nodes)| (para_id, genesis_data, None)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should find a way to pass them as parathreads. Maybe the cleanest is with a new command line argument dont you think? Or alternatively, something in the spec that indicates whether it is a parathread..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the PR is good but I would love to see a way for us injecting parathreads without going through manually changing the spec. However the only way of doing is I think is by:
- A chain-spec container file from which we can read the parathread-params from some attribute
- A different command that asks for two arguments, the json file and the parathread params for parathreads.
I am not sure how feasible is the latter (or even, how user-friendly)
I feel that parity wants to move all the genesis stuff out of the node binary and use the chain_spec_builder binary instead. I don't know how that binary works yet so not sure if that's a good idea. But with that in mind, I was thinking of deprecating the And also we could merge all the But I don't want to do any of this in this PR, as it would be a big change and probably break our zombienet tests. |
sounds fair enough yes. I think what you want to do is something similar to what zombienet does right? In that case I am fine with it yes. Take into account that #629 adds the command line flag for starlight too, so please wait until it is merged to apply changes over it |
To actually add them we will need to modify the chain spec manually, probably using a javascript script