@@ -13,13 +13,14 @@ use reth_scroll_chainspec::SCROLL_DEV;
1313use reth_scroll_node:: ScrollNetworkPrimitives ;
1414use reth_tokio_util:: EventStream ;
1515use rollup_node:: {
16+ constants:: SCROLL_GAS_LIMIT ,
1617 test_utils:: {
1718 default_sequencer_test_scroll_rollup_node_config, default_test_scroll_rollup_node_config,
1819 generate_tx, setup_engine,
1920 } ,
2021 BeaconProviderArgs , ConsensusAlgorithm , ConsensusArgs , DatabaseArgs , EngineDriverArgs ,
21- GasPriceOracleArgs , L1ProviderArgs , NetworkArgs as ScrollNetworkArgs , ScrollRollupNodeConfig ,
22- SequencerArgs ,
22+ GasPriceOracleArgs , L1ProviderArgs , NetworkArgs as ScrollNetworkArgs , RollupNodeContext ,
23+ ScrollRollupNodeConfig , SequencerArgs ,
2324} ;
2425use rollup_node_manager:: { RollupManagerCommand , RollupManagerEvent , RollupManagerHandle } ;
2526use rollup_node_primitives:: { sig_encode_hash, BatchCommitData , ConsensusUpdate } ;
@@ -497,11 +498,14 @@ async fn graceful_shutdown_consolidates_most_recent_batch_on_startup() -> eyre::
497498 let ( rnm, handle, l1_notification_tx) = config
498499 . clone ( )
499500 . build (
500- node. inner . network . clone ( ) ,
501+ RollupNodeContext :: new (
502+ node. inner . network . clone ( ) ,
503+ chain_spec. clone ( ) ,
504+ path. clone ( ) ,
505+ SCROLL_GAS_LIMIT ,
506+ ) ,
501507 events,
502508 node. inner . add_ons_handle . rpc_handle . rpc_server_handles . clone ( ) ,
503- chain_spec. clone ( ) ,
504- path. clone ( ) ,
505509 )
506510 . await ?;
507511
@@ -604,11 +608,14 @@ async fn graceful_shutdown_consolidates_most_recent_batch_on_startup() -> eyre::
604608 let ( rnm, handle, l1_notification_tx) = config
605609 . clone ( )
606610 . build (
607- node. inner . network . clone ( ) ,
611+ RollupNodeContext :: new (
612+ node. inner . network . clone ( ) ,
613+ chain_spec,
614+ path. clone ( ) ,
615+ SCROLL_GAS_LIMIT ,
616+ ) ,
608617 events,
609618 node. inner . add_ons_handle . rpc_handle . rpc_server_handles . clone ( ) ,
610- chain_spec,
611- path. clone ( ) ,
612619 )
613620 . await ?;
614621 let l1_notification_tx = l1_notification_tx. unwrap ( ) ;
@@ -695,11 +702,14 @@ async fn can_handle_batch_revert() -> eyre::Result<()> {
695702 let ( rnm, handle, l1_watcher_tx) = config
696703 . clone ( )
697704 . build (
698- node. inner . network . clone ( ) ,
705+ RollupNodeContext :: new (
706+ node. inner . network . clone ( ) ,
707+ chain_spec. clone ( ) ,
708+ path. clone ( ) ,
709+ SCROLL_GAS_LIMIT ,
710+ ) ,
699711 events,
700712 node. inner . add_ons_handle . rpc_handle . rpc_server_handles . clone ( ) ,
701- chain_spec. clone ( ) ,
702- path. clone ( ) ,
703713 )
704714 . await ?;
705715 let l1_watcher_tx = l1_watcher_tx. unwrap ( ) ;
@@ -827,11 +837,14 @@ async fn can_handle_reorgs_while_sequencing() -> eyre::Result<()> {
827837 let ( rnm, handle, l1_watcher_tx) = config
828838 . clone ( )
829839 . build (
830- node. inner . network . clone ( ) ,
840+ RollupNodeContext :: new (
841+ node. inner . network . clone ( ) ,
842+ chain_spec. clone ( ) ,
843+ path. clone ( ) ,
844+ SCROLL_GAS_LIMIT ,
845+ ) ,
831846 events,
832847 node. inner . add_ons_handle . rpc_handle . rpc_server_handles . clone ( ) ,
833- chain_spec. clone ( ) ,
834- path. clone ( ) ,
835848 )
836849 . await ?;
837850 let l1_watcher_tx = l1_watcher_tx. unwrap ( ) ;
0 commit comments