-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Strategy should pass settings into plugins during plugins creation.
alkurbatov:
"a. We definitely need to know which strategy to use in advance. As a result, the strategy should always be created before any other plugins.
b. The strategy could provide a kind of requirements (another struct) with some settings. Those settings could include different hints for different subsystems (in or case for the miner). The things like worker type (i.e. race specific) could be included into the settings, too.
c. Dispatcher takes a const reference to the settings from the strategy.
d. Dispatcher passes the settings by reference into each plugin. A plugin in its turn can put the hints it needs into member variables (also constants).
Such approach allows to pass hints not only to the miner, but to any other plugin and keeps cache role on the hub, not game brain :)"