diff --git a/main.star b/main.star index 56c310794..b797b1dbb 100644 --- a/main.star +++ b/main.star @@ -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") diff --git a/src/mev/commit-boost/mev_boost/mev_boost_launcher.star b/src/mev/commit-boost/mev_boost/mev_boost_launcher.star index 5b67a5dd0..941f4bc32 100644 --- a/src/mev/commit-boost/mev_boost/mev_boost_launcher.star +++ b/src/mev/commit-boost/mev_boost/mev_boost_launcher.star @@ -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, } diff --git a/static_files/mev/commit-boost/cb-config.toml.tmpl b/static_files/mev/commit-boost/cb-config.toml.tmpl index fdb6cb2eb..fa0efb202 100644 --- a/static_files/mev/commit-boost/cb-config.toml.tmpl +++ b/static_files/mev/commit-boost/cb-config.toml.tmpl @@ -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 }} \ No newline at end of file