diff --git a/main.star b/main.star index 5e9682140..8e867a3aa 100644 --- a/main.star +++ b/main.star @@ -238,7 +238,7 @@ def run(plan, args={}): timeout="20m", service_name=first_client_beacon_name, ) - endpoint = helix_relay.launch_helix_relay( + helix_endpoint = helix_relay.launch_helix_relay( plan, mev_params, network_params, @@ -258,7 +258,7 @@ def run(plan, args={}): contract_owner.private_key, normal_user.private_key, ) - mev_endpoints.append(endpoint) + mev_endpoints.append(helix_endpoint) # spin up the mev boost contexts if some endpoints for relays have been passed all_mevboost_contexts = [] diff --git a/src/mev/mev_relay/helix_launcher.star b/src/mev/mev_relay/helix_launcher.star index 2d4b1846f..13c65ab28 100644 --- a/src/mev/mev_relay/helix_launcher.star +++ b/src/mev/mev_relay/helix_launcher.star @@ -35,7 +35,6 @@ REDIS_MAX_CPU = 1000 REDIS_MIN_MEMORY = 16 REDIS_MAX_MEMORY = 1024 - def launch_helix_relay( plan, mev_params, @@ -132,9 +131,14 @@ def launch_helix_relay( env_vars = { "RELAY_KEY": DUMMY_SECRET_KEY, - "RUST_LOG": "debug", + "RUST_LOG": "trace", } + # Sleep `network_params.seconds_per_slot * 32` seconds (1 epoch) + genesis_delay before starting the relay + sleep_time = network_params.seconds_per_slot * 32 + network_params.genesis_delay + + plan.print("Sleeping for {0} seconds before starting the relay".format(sleep_time)) + helix = plan.add_service( name=SERVICE_NAME, config=ServiceConfig(