Skip to content
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
1 change: 1 addition & 0 deletions main.star
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ def run(plan, args={}):
mev_endpoints,
el_cl_data_files_artifact_uuid,
global_node_selectors,
final_genesis_timestamp,
)
else:
fail("Invalid MEV type")
Expand Down
13 changes: 7 additions & 6 deletions src/mev/commit-boost/mev_boost/mev_boost_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def launch(
relays,
el_cl_genesis_data,
global_node_selectors,
final_genesis_timestamp,
):
network = (
network
Expand All @@ -39,15 +40,13 @@ def launch(

image = mev_params.mev_boost_image
template_data = new_config_template_data(
network,
input_parser.MEV_BOOST_PORT,
relays,
network, input_parser.MEV_BOOST_PORT, relays, final_genesis_timestamp
)

mev_rs_boost_config_template = read_file(static_files.COMMIT_BOOST_CONFIG_FILEPATH)
commit_boost_config_template = read_file(static_files.COMMIT_BOOST_CONFIG_FILEPATH)

template_and_data = shared_utils.new_template_and_data(
mev_rs_boost_config_template, template_data
commit_boost_config_template, template_data
)

template_and_data_by_rel_dest_filepath = {}
Expand Down Expand Up @@ -92,6 +91,7 @@ def get_config(
cmd=[],
env_vars={
"CB_CONFIG": config_file_path,
"RUST_LOG": "debug",
},
files={
CB_CONFIG_MOUNT_DIRPATH_ON_SERVICE: config_file,
Expand All @@ -111,9 +111,10 @@ def new_mev_boost_launcher(should_check_relay, relay_end_points):
)


def new_config_template_data(network, port, relays):
def new_config_template_data(network, port, relays, final_genesis_timestamp):
return {
"Network": network,
"Port": port,
"Relays": relays,
"Timestamp": final_genesis_timestamp,
}
9 changes: 3 additions & 6 deletions static_files/mev/commit-boost/cb-config.toml.tmpl
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
chain = "{{ .Network }}"
chain = { genesis_time_secs = {{ .Timestamp }}, path = "{{ .Network }}" }

[pbs]
host = "0.0.0.0"
port = {{ .Port }}

{{ range $index, $relay := .Relays }}
[[relays]]
id = "mev_relay_{{$index}}"
url = "{{ $relay }}"
{{- end }}

[logs]
log_level = "debug"
max_log_files = 7
{{- end }}
Loading