@@ -30,6 +30,7 @@ use apollo_node_config::component_execution_config::{
3030} ;
3131use apollo_node_config:: node_config:: { NodeDynamicConfig , SequencerNodeConfig } ;
3232use apollo_node_config:: version:: VERSION_FULL ;
33+ use apollo_proof_manager:: proof_manager:: ProofManager ;
3334use apollo_signature_manager:: { create_signature_manager, SignatureManager } ;
3435use apollo_state_sync:: runner:: StateSyncRunner ;
3536use apollo_state_sync:: { create_state_sync_and_runner, StateSync } ;
@@ -58,6 +59,7 @@ pub struct SequencerNodeComponents {
5859 pub monitoring_endpoint : Option < MonitoringEndpoint > ,
5960 pub mempool_p2p_propagator : Option < MempoolP2pPropagator > ,
6061 pub mempool_p2p_runner : Option < MempoolP2pRunner > ,
62+ pub proof_manager : Option < ProofManager > ,
6163 pub sierra_compiler : Option < SierraCompiler > ,
6264 pub signature_manager : Option < SignatureManager > ,
6365 pub state_sync : Option < StateSync > ,
@@ -481,7 +483,18 @@ pub async fn create_node_components(
481483 None
482484 }
483485 } ;
484-
486+ let proof_manager = match config. components . proof_manager . execution_mode {
487+ ReactiveComponentExecutionMode :: LocalExecutionWithRemoteDisabled
488+ | ReactiveComponentExecutionMode :: LocalExecutionWithRemoteEnabled => {
489+ let proof_manager_config =
490+ config. proof_manager_config . as_ref ( ) . expect ( "Proof Manager config should be set" ) ;
491+ Some ( ProofManager :: new ( proof_manager_config. clone ( ) ) )
492+ }
493+ ReactiveComponentExecutionMode :: Disabled | ReactiveComponentExecutionMode :: Remote => {
494+ // TODO(tsabary): assert config is not set.
495+ None
496+ }
497+ } ;
485498 let sierra_compiler = match config. components . sierra_compiler . execution_mode {
486499 ReactiveComponentExecutionMode :: LocalExecutionWithRemoteDisabled
487500 | ReactiveComponentExecutionMode :: LocalExecutionWithRemoteEnabled => {
@@ -514,6 +527,7 @@ pub async fn create_node_components(
514527 monitoring_endpoint,
515528 mempool_p2p_propagator,
516529 mempool_p2p_runner,
530+ proof_manager,
517531 sierra_compiler,
518532 signature_manager,
519533 state_sync,
0 commit comments