You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Namespace/prefix the environment variables - this includes both to miden as well as component.
Environment variables should consistent between miden-node start node and miden-node start <component>.
Side refactoring
This is also a good opportunity to refactor the various component crates. They really only expose the component entry-point and nothing else. A simple way to ensure this is to keep everything in lib.rs private and only re-export the entry-point e.g. pub use BlockProducer.
At the moment things are a bit more complex because configuration also lives there. However with the proposed change all configuration should live in the node binary, which is also responsible for converting from config to component structs.
The text was updated successfully, but these errors were encountered:
As discussed in #650.
Additional considerations:
miden
as well ascomponent
.miden-node start node
andmiden-node start <component>
.Side refactoring
This is also a good opportunity to refactor the various component crates. They really only expose the component entry-point and nothing else. A simple way to ensure this is to keep everything in
lib.rs
private and only re-export the entry-point e.g.pub use BlockProducer
.At the moment things are a bit more complex because configuration also lives there. However with the proposed change all configuration should live in the node binary, which is also responsible for converting from config to component structs.
The text was updated successfully, but these errors were encountered: