2020 steps:: * ,
2121 } ,
2222 std:: sync:: Arc ,
23+ tracing:: info,
2324} ;
2425
2526mod args;
@@ -106,6 +107,11 @@ fn build_pipeline(
106107
107108 let target_flashblocks = Arc :: new ( TargetFlashblocks :: new ( ) ) ;
108109
110+ info ! (
111+ "cli_args.builder_signer.is_some() = {}" ,
112+ cli_args. builder_signer. is_some( )
113+ ) ;
114+
109115 let pipeline = Pipeline :: < Flashblocks > :: named ( "top" )
110116 . with_step ( OptimismPrologue )
111117 . with_step_if (
@@ -123,27 +129,34 @@ fn build_pipeline(
123129 Once ,
124130 Pipeline :: named ( "single_flashblock" )
125131 . with_pipeline (
126- Loop ,
132+ Once ,
127133 Pipeline :: named ( "flashblock_steps" )
128- . with_step ( AppendOrders :: from_pool ( pool) . with_ok_on_limit ( ) )
129- . with_step ( OrderByPriorityFee :: default ( ) )
130- . with_step_if (
131- cli_args. revert_protection ,
132- RemoveRevertedTransactions :: default ( ) ,
134+ . with_pipeline (
135+ Loop ,
136+ Pipeline :: named ( "inner_flashblock_steps" )
137+ . with_step ( AppendOrders :: from_pool ( pool) . with_ok_on_limit ( ) )
138+ . with_step ( OrderByPriorityFee :: default ( ) )
139+ . with_step_if (
140+ cli_args. revert_protection ,
141+ RemoveRevertedTransactions :: default ( ) ,
142+ )
143+ . with_step ( BreakAfterDeadline ) ,
133144 )
134- . with_step ( BreakAfterDeadline )
135- . with_epilogue_if (
145+ . with_step_if (
136146 cli_args. builder_signer . is_some ( ) ,
137147 BuilderEpilogue :: with_signer ( builder_signer. clone ( ) . into ( ) )
138148 . with_message ( |block| {
139149 format ! ( "Block Number: {}" , block. number( ) )
140150 } ) ,
141151 )
142- . with_epilogue ( PublishFlashblock :: new (
152+ . with_step ( PublishFlashblock :: new (
143153 ws. clone ( ) ,
144154 cli_args. flashblocks_args . calculate_state_root ,
145155 ) )
146- . with_limits ( FlashblockLimits :: new ( interval) ) ,
156+ . with_limits ( FlashblockLimits :: new (
157+ interval,
158+ target_flashblocks. clone ( ) ,
159+ ) ) ,
147160 )
148161 . with_step ( BreakAfterDeadline ) ,
149162 )
0 commit comments