Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: mev-builder custom image #847

Merged
merged 2 commits into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading