Function massa_execution_worker::worker::start_execution_worker
source · pub fn start_execution_worker(
config: ExecutionConfig,
final_state: Arc<RwLock<dyn FinalStateController>>,
selector: Box<dyn SelectorController>,
mip_store: MipStore,
channels: ExecutionChannels,
wallet: Arc<RwLock<Wallet>>,
massa_metrics: MassaMetrics,
event_cache: Box<dyn EventCacheController>,
) -> (Box<dyn ExecutionManager>, Box<dyn ExecutionController>)Expand description
Launches an execution worker thread and returns an ExecutionManager to interact with it
§parameters
config: execution configurationfinal_state: a thread-safe shared access to the final state for reading and writing
§Returns
A pair (execution_manager, execution_controller) where:
execution_manager: allows to stop the workerexecution_controller: allows sending requests and notifications to the worker