-
Notifications
You must be signed in to change notification settings - Fork 335
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
Multiple client and runtime support #415
Conversation
@tgmichel , I've seen you are doing a lot of @JoshOrndorff or @4meta5 who has more experience with those, what do you suggest ? |
Yeah, it's the other possible approach: no features, enum matching the client and include everything in the binary to launch any of the networks. |
Yes @tgmichel , I'm more leaning into that solution if you don't see any drawback |
I prefer @tgmichel's current approach (using cargo features) inspired by Acala. The parity approach has a few drawbacks that both lead to longer build time.
There are also advantages to Parity's approach. The big one is that there is only a single binary, single docker image, no need to remember build flags. I'm also more familiar with Parity's approach, so there may be drawbacks to the Acala's approach that I'm not yet aware of. EDIT: My point #2 was wrong. |
@JoshOrndorff main drawback I found overall is the Edit: I mean we can still use the feature approach for optimization, but not for the RuntimeApiCollection stuff. |
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.
Here's a preliminary review. I didn't quite get to the end.
What happens if no flag is passed? We might wanna update the moonbeam-launch readme (and maybe also tests) |
@tgmichel , I've merged master, which included some changes from Joshy on Nimbus. |
@JoshOrndorff I restored the author for part of it, as it was needed for the |
Everyone, thank you for your reviews. Merging now. |
This PR introduces:
moonbeam
,moonbase
,moonriver
andmoonshadow
networks.AbstractClient
as a proxy.General
Service
moon*
clients.moon*
chainspec.command
's functionload_spec
logic.Subcommand
s.TODO-multiple-runtimes
comments.Runtime