Function massa_factory_worker::start_factory

source ·
pub fn start_factory(
    cfg: FactoryConfig,
    wallet: Arc<RwLock<Wallet>>,
    channels: FactoryChannels,
    mip_store: MipStore,
) -> Box<dyn FactoryManager>
Expand description

Start factory

§Arguments

  • cfg: factory configuration
  • wallet: atomic reference to the node wallet
  • channels: channels to communicate with other modules

§Return value

Returns a factory manager allowing to stop the workers cleanly.