-
Notifications
You must be signed in to change notification settings - Fork 3
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
Reuse subsystems in different orchestra #32
Comments
The issue with declaring tow I only have ugly solutions for you. Happy to share if interested. (Hint: Modified import paths in all subsystems based on a |
The best approach might be to make the macro |
So basically we would pass different feature flags depending on whether we compile for cumulus or polkadot and then disable some of the subsystems, but reuse the same orchestra? Did I understand that correctly? One other solution (also hacky) I was thinking about was to introduce one more abstraction level below the macro level. And then reuse the same code but declare the subsystems separately in cumulus. |
Yes, that's correct.
I am not sure I understand what you mean. Also note, that this is quite a bit of work and would add further complexity to the proc-macro, which is not desirable. So far, the Chaninging the number of subsystems will percolate through quite some code in polkadot (i.e. the overseer down to service and cli due to the Let me think about this for a few days, I have a hunch where we could go with something like Let's do a call on Friday~ish? |
Thanks for the help! I think a call might be useful! |
Some time ago, we introduced a minimal Polkadot node in Cumulus. It runs a subset of subsystems that is usually present in the polkadot node. For the initial implementation, I replaced unneeded subsystems with
DummySubsystem
.This works quite well, but I would like to clean this up and define a new orchestra that only accepts the required subsystem set.
Naive definition of a new orchestra and usage with polkadot subsystems gives this error:
I guess this is expected since we define the trait location via prefix manually. So it seems like there is a 1:1 mapping between subsystem <-> orchestra?
Before diving deeper into this, I would like to have an opinion from someone more experienced with the orchestra (maybe @drahnr?). Is this even supported currently? How would I go about this?
The text was updated successfully, but these errors were encountered: