@@ -18,7 +18,7 @@ use rollup_node_primitives::{
1818 BatchCommitData , BatchInfo , BlockConsolidationOutcome , BlockInfo , ChainImport ,
1919 L1MessageEnvelope , L2BlockInfoWithL1Messages ,
2020} ;
21- use rollup_node_providers:: { L1MessageProvider , L1Provider } ;
21+ use rollup_node_providers:: L1MessageProvider ;
2222use rollup_node_sequencer:: { Sequencer , SequencerEvent } ;
2323use rollup_node_signer:: { SignatureAsBytes , SignerEvent , SignerHandle } ;
2424use rollup_node_watcher:: L1Notification ;
@@ -92,7 +92,6 @@ const EVENT_CHANNEL_SIZE: usize = 5000;
9292pub struct ChainOrchestrator <
9393 N : FullNetwork < Primitives = ScrollNetworkPrimitives > ,
9494 ChainSpec ,
95- L1P ,
9695 L1MP ,
9796 L2P ,
9897 EC ,
@@ -124,19 +123,18 @@ pub struct ChainOrchestrator<
124123 /// The signer used to sign messages.
125124 signer : Option < SignerHandle > ,
126125 /// The derivation pipeline used to derive L2 blocks from batches.
127- derivation_pipeline : DerivationPipeline < L1P > ,
126+ derivation_pipeline : DerivationPipeline ,
128127 /// Optional event sender for broadcasting events to listeners.
129128 event_sender : Option < EventSender < ChainOrchestratorEvent > > ,
130129}
131130
132131impl <
133132 N : FullNetwork < Primitives = ScrollNetworkPrimitives > + Send + Sync + ' static ,
134133 ChainSpec : ScrollHardforks + EthChainSpec + Send + Sync + ' static ,
135- L1P : L1Provider + Unpin + Clone + Send + Sync + ' static ,
136134 L1MP : L1MessageProvider + Unpin + Clone + Send + Sync + ' static ,
137135 L2P : Provider < Scroll > + ' static ,
138136 EC : ScrollEngineApi + Sync + Send + ' static ,
139- > ChainOrchestrator < N , ChainSpec , L1P , L1MP , L2P , EC >
137+ > ChainOrchestrator < N , ChainSpec , L1MP , L2P , EC >
140138{
141139 /// Creates a new chain orchestrator.
142140 #[ allow( clippy:: too_many_arguments) ]
@@ -151,7 +149,7 @@ impl<
151149 engine : Engine < EC > ,
152150 sequencer : Option < Sequencer < L1MP , ChainSpec > > ,
153151 signer : Option < SignerHandle > ,
154- derivation_pipeline : DerivationPipeline < L1P > ,
152+ derivation_pipeline : DerivationPipeline ,
155153 ) -> Result < ( Self , ChainOrchestratorHandle < N > ) , ChainOrchestratorError > {
156154 let ( handle_tx, handle_rx) = mpsc:: unbounded_channel ( ) ;
157155 let handle = ChainOrchestratorHandle :: new ( handle_tx) ;
@@ -224,7 +222,7 @@ impl<
224222 let res = self . handle_network_event( event) . await ;
225223 self . handle_outcome( res) ;
226224 }
227- Some ( notification) = self . l1_notification_rx. recv( ) , if self . sync_state. l2( ) . is_synced( ) && self . derivation_pipeline. is_empty( ) . await => {
225+ Some ( notification) = self . l1_notification_rx. recv( ) , if self . sync_state. l2( ) . is_synced( ) && self . derivation_pipeline. is_empty( ) => {
228226 let res = self . handle_l1_notification( notification) . await ;
229227 self . handle_outcome( res) ;
230228 }
0 commit comments