Skip to content

Commit

Permalink
chore(boost): inherit slot time from network params
Browse files Browse the repository at this point in the history
  • Loading branch information
thedevbirb committed Jun 7, 2024
1 parent bdcc7b8 commit a508f25
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions main.star
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ def run(plan, args={}):
mev_params.mev_boost_image,
mev_params.mev_boost_args,
global_node_selectors,
network_params,
)
all_mevboost_contexts.append(mev_boost_context)

Expand Down
4 changes: 4 additions & 0 deletions src/mev/mev_boost/mev_boost_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,15 @@ def launch(
mev_boost_image,
mev_boost_args,
global_node_selectors,
network_params,
):
config = get_config(
mev_boost_launcher,
network_id,
mev_boost_image,
mev_boost_args,
global_node_selectors,
network_params,
)

mev_boost_service = plan.add_service(service_name, config)
Expand All @@ -53,6 +55,7 @@ def get_config(
mev_boost_image,
mev_boost_args,
node_selectors,
network_params,
):
command = mev_boost_args

Expand All @@ -72,6 +75,7 @@ def get_config(
# maybe this is breaking; this isn't verifyign the bid and not sending it to the validator
"SKIP_RELAY_SIGNATURE_CHECK": "1",
"RELAYS": mev_boost_launcher.relay_end_points[0],
"SLOT_SEC": str(network_params.seconds_per_slot)
},
min_cpu=MIN_CPU,
max_cpu=MAX_CPU,
Expand Down

0 comments on commit a508f25

Please sign in to comment.