Skip to content

Commit 7104ace

Browse files
committed
add step to add the builder tx
1 parent dcbe4b2 commit 7104ace

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/main.rs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,23 @@ fn build_flashblocks_pipeline(
147147
// in limits
148148
let max_flashblocks = Arc::new(AtomicU64::new(0));
149149

150-
let flashblock_building_pipeline = (
150+
let flashblock_building_pipeline_steps = (
151151
AppendOrders::from_pool(pool).with_ok_on_limit(),
152152
OrderByPriorityFee::default(),
153153
RemoveRevertedTransactions::default(),
154154
BreakAfterDeadline,
155155
)
156+
.into_pipeline();
157+
158+
let flashblock_building_pipeline_steps =
159+
if let Some(ref signer) = cli_args.builder_signer {
160+
flashblock_building_pipeline_steps
161+
.with_step(BuilderEpilogue::with_signer(signer.clone().into()))
162+
} else {
163+
flashblock_building_pipeline_steps
164+
};
165+
166+
let flashblock_building_pipeline = flashblock_building_pipeline_steps
156167
.with_epilogue(PublishFlashblock::new(
157168
&ws,
158169
cli_args.flashblocks_args.calculate_state_root,

0 commit comments

Comments
 (0)