@@ -2,9 +2,7 @@ use alloy_consensus::Header;
22use alloy_primitives:: { Signature , B256 } ;
33use reth_network_peers:: PeerId ;
44use reth_scroll_primitives:: ScrollBlock ;
5- use rollup_node_primitives:: {
6- BatchInfo , BlockInfo , ChainImport , L2BlockInfoWithL1Messages , WithFinalizedBlockNumber ,
7- } ;
5+ use rollup_node_primitives:: { BatchInfo , BlockInfo , ChainImport , L2BlockInfoWithL1Messages } ;
86
97/// An event emitted by the `ChainOrchestrator`.
108#[ derive( Debug , Clone , PartialEq , Eq ) ]
@@ -40,9 +38,8 @@ pub enum ChainOrchestratorEvent {
4038 /// The safe L2 block info.
4139 safe_head : Option < BlockInfo > ,
4240 } ,
43- /// A batch has been finalized returning an optional finalized L2 block. Also returns a
44- /// [`BatchInfo`] if the finalized event occurred in a finalized L1 block.
45- BatchFinalized ( Option < WithFinalizedBlockNumber < BatchInfo > > , Option < BlockInfo > ) ,
41+ /// A batch has been finalized returning a list of finalized batches.
42+ BatchFinalized ( u64 , Vec < BatchInfo > ) ,
4643 /// An L1 block has been finalized returning the L1 block number and the list of finalized
4744 /// batches.
4845 L1BlockFinalized ( u64 , Vec < BatchInfo > ) ,
0 commit comments