Commit 9dfc4de1 authored by Gyanendra Mishra's avatar Gyanendra Mishra Committed by GitHub

fix: set MEV image to 0.26.0 and complain if capella is zero with MEV set to full (#261)

parent cfca6d13
......@@ -202,6 +202,7 @@ workflows:
- reth-all
- teku-all
- nimbus_mev
- complex_mev
build:
when: << pipeline.parameters.should-enable-build-workflow >>
......@@ -241,9 +242,3 @@ workflows:
branches:
ignore:
- main
- complex_mev:
filters:
branches:
ignore:
- main
{
"mev_type": "full",
"mev_params": {
"launch_custom_flood": true
"launch_custom_flood": true,
"mev_relay_image": "flashbots/mev-boost-relay:0.27"
},
"network_params": {
"seconds_per_slot": 3
"seconds_per_slot": 3,
"capella_fork_epoch": 0
}
}
\ No newline at end of file
......@@ -15,6 +15,7 @@ DEFAULT_CL_IMAGES = {
"lodestar": "chainsafe/lodestar:latest",
}
MEV_BOOST_RELAY_DEFAULT_IMAGE = "flashbots/mev-boost-relay:0.26"
NETHERMIND_NODE_NAME = "nethermind"
NIMBUS_NODE_NAME = "nimbus"
......@@ -82,6 +83,17 @@ def parse_input(plan, input_args):
result.get("mev_type"),
)
if (
result.get("mev_type") == "full"
and result["network_params"]["capella_fork_epoch"] == 0
and result["mev_params"]["mev_relay_image"] == MEV_BOOST_RELAY_DEFAULT_IMAGE
):
fail(
"The default MEV image {0} requires a non-zero value for capella fork epoch set via network_params.capella_fork_epoch".format(
MEV_BOOST_RELAY_DEFAULT_IMAGE
)
)
result["tx_spammer_params"] = get_default_tx_spammer_params()
return struct(
......@@ -373,7 +385,7 @@ def default_participant():
def get_default_mev_params():
return {
"mev_relay_image": "flashbots/mev-boost-relay:latest",
"mev_relay_image": MEV_BOOST_RELAY_DEFAULT_IMAGE,
# TODO replace with flashbots/builder when they publish an arm64 image as mentioned in flashbots/builder#105
"mev_builder_image": "ethpandaops/flashbots-builder:main",
"mev_boost_image": "flashbots/mev-boost",
......
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