Skip to content

Commit bc89ad3

Browse files
authored
fix: mev-builder custom image (ethereum#847)
1 parent b61a128 commit bc89ad3

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

src/el/el_launcher.star

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def launch(
2525
num_participants,
2626
port_publisher,
2727
mev_builder_type,
28+
mev_params,
2829
):
2930
el_launchers = {
3031
constants.EL_TYPE.geth: {
@@ -77,6 +78,7 @@ def launch(
7778
jwt_file,
7879
network_params.network,
7980
builder_type=mev_builder_type,
81+
mev_params=mev_params,
8082
),
8183
"launch_method": reth.launch,
8284
},

src/el/reth/reth_launcher.star

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def get_config(
234234
launcher.builder_type == constants.FLASHBOTS_MEV_TYPE
235235
or launcher.builder_type == constants.COMMIT_BOOST_MEV_TYPE
236236
):
237-
image = constants.DEFAULT_FLASHBOTS_BUILDER_IMAGE
237+
image = launcher.mev_params.mev_builder_image
238238
cl_client_name = service_name.split("-")[4]
239239
cmd.append("--engine.experimental")
240240
cmd.append("--rbuilder.config=" + flashbots_rbuilder.MEV_FILE_PATH_ON_CONTAINER)
@@ -283,10 +283,13 @@ def get_config(
283283
return ServiceConfig(**config_args)
284284

285285

286-
def new_reth_launcher(el_cl_genesis_data, jwt_file, network, builder_type=False):
286+
def new_reth_launcher(
287+
el_cl_genesis_data, jwt_file, network, builder_type=False, mev_params=None
288+
):
287289
return struct(
288290
el_cl_genesis_data=el_cl_genesis_data,
289291
jwt_file=jwt_file,
290292
network=network,
291293
builder_type=builder_type,
294+
mev_params=mev_params,
292295
)

src/participant_network.star

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ def launch_participant_network(
141141
num_participants,
142142
args_with_right_defaults.port_publisher,
143143
args_with_right_defaults.mev_type,
144+
args_with_right_defaults.mev_params,
144145
)
145146

146147
# Launch all consensus layer clients

0 commit comments

Comments
 (0)