Skip to content

Commit

Permalink
fix: mev-builder custom image (#847)
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabasbusa authored Dec 4, 2024
1 parent b61a128 commit bc89ad3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/el/el_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def launch(
num_participants,
port_publisher,
mev_builder_type,
mev_params,
):
el_launchers = {
constants.EL_TYPE.geth: {
Expand Down Expand Up @@ -77,6 +78,7 @@ def launch(
jwt_file,
network_params.network,
builder_type=mev_builder_type,
mev_params=mev_params,
),
"launch_method": reth.launch,
},
Expand Down
7 changes: 5 additions & 2 deletions src/el/reth/reth_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def get_config(
launcher.builder_type == constants.FLASHBOTS_MEV_TYPE
or launcher.builder_type == constants.COMMIT_BOOST_MEV_TYPE
):
image = constants.DEFAULT_FLASHBOTS_BUILDER_IMAGE
image = launcher.mev_params.mev_builder_image
cl_client_name = service_name.split("-")[4]
cmd.append("--engine.experimental")
cmd.append("--rbuilder.config=" + flashbots_rbuilder.MEV_FILE_PATH_ON_CONTAINER)
Expand Down Expand Up @@ -283,10 +283,13 @@ def get_config(
return ServiceConfig(**config_args)


def new_reth_launcher(el_cl_genesis_data, jwt_file, network, builder_type=False):
def new_reth_launcher(
el_cl_genesis_data, jwt_file, network, builder_type=False, mev_params=None
):
return struct(
el_cl_genesis_data=el_cl_genesis_data,
jwt_file=jwt_file,
network=network,
builder_type=builder_type,
mev_params=mev_params,
)
1 change: 1 addition & 0 deletions src/participant_network.star
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ def launch_participant_network(
num_participants,
args_with_right_defaults.port_publisher,
args_with_right_defaults.mev_type,
args_with_right_defaults.mev_params,
)

# Launch all consensus layer clients
Expand Down

0 comments on commit bc89ad3

Please sign in to comment.