Commit 040e622c authored by ltitanb's avatar ltitanb Committed by GitHub

fix: commit boost startup (#906)

parent 03bb449c
......@@ -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")
......
......@@ -30,6 +30,7 @@ def launch(
relays,
el_cl_genesis_data,
global_node_selectors,
final_genesis_timestamp,
):
network = (
network
......@@ -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 = {}
......@@ -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,
......@@ -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,
}
chain = "{{ .Network }}"
chain = { genesis_time_secs = {{ .Timestamp }}, path = "{{ .Network }}" }
[pbs]
host = "0.0.0.0"
port = {{ .Port }}
{{ range $index, $relay := .Relays }}
......@@ -8,7 +9,3 @@ port = {{ .Port }}
id = "mev_relay_{{$index}}"
url = "{{ $relay }}"
{{- end }}
\ No newline at end of file
[logs]
log_level = "debug"
max_log_files = 7
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment