@@ -17,6 +17,7 @@ use scroll_network::{
1717 BlockImportError , BlockImportOutcome , BlockValidation , BlockValidationError , NetworkManager ,
1818 NetworkManagerEvent , NewBlockWithPeer ,
1919} ;
20+ use scroll_pipeline:: Pipeline ;
2021use scroll_wire:: NewBlock ;
2122use std:: {
2223 future:: Future ,
@@ -38,6 +39,9 @@ pub use consensus::PoAConsensus;
3839mod config;
3940pub use config:: Config ;
4041
42+ mod state;
43+ pub use state:: State ;
44+
4145/// The size of the event channel.
4246const EVENT_CHANNEL_SIZE : usize = 100 ;
4347
@@ -72,6 +76,8 @@ pub struct RollupNodeManager<C, EC, P> {
7276 l1_watcher : L1Watcher ,
7377 /// The indexer for indexing rollup node data.
7478 indexer : Indexer ,
79+ /// The pipeline that derives the scroll chain from L1 events.
80+ pipeline : Pipeline ,
7581 /// The receiver for new blocks received from the network (used to bridge from eth-wire).
7682 new_block_rx : UnboundedReceiverStream < NewBlockWithPeer > ,
7783 /// The forkchoice state of the rollup node.
96102 consensus : C ,
97103 l1_watcher : L1Watcher ,
98104 indexer : Indexer ,
105+ pipeline : Pipeline ,
99106 forkchoice_state : ForkchoiceState ,
100107 new_block_rx : UnboundedReceiver < NewBlockWithPeer > ,
101108 ) -> Self {
@@ -106,6 +113,7 @@ where
106113 consensus,
107114 l1_watcher,
108115 indexer,
116+ pipeline,
109117 new_block_rx : new_block_rx. into ( ) ,
110118 forkchoice_state,
111119 pending_block_imports : FuturesOrdered :: new ( ) ,
@@ -213,7 +221,7 @@ where
213221
214222 /// Handles an L1 event from the L1 watcher.
215223 fn handle_l1_event ( & mut self , _event : L1Event ) {
216- todo ! ( ) ;
224+ todo ! ( )
217225 }
218226
219227 /// Handles a block import outcome.
0 commit comments