Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ethereum-package
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
ethereum-package
Commits
91794e9f
Unverified
Commit
91794e9f
authored
Jan 03, 2024
by
Barnabas Busa
Committed by
GitHub
Jan 03, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: mev workflow (#434)
parent
a40f7dc8
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
17 deletions
+25
-17
capella-mev.yaml
examples/capella-mev.yaml
+6
-9
main.star
main.star
+5
-2
mev_relay_launcher.star
src/mev/mev_relay/mev_relay_launcher.star
+2
-0
input_parser.star
src/package_io/input_parser.star
+12
-6
No files found.
examples/capella-mev.yaml
View file @
91794e9f
mev_type
:
full
participants
:
-
el_client_type
:
geth
el_client_image
:
ethereum/client-go:latest
el_client_log_level
:
'
'
cl_client_type
:
lighthouse
cl_client_log_level
:
'
'
cl_client_image
:
sigp/lighthouse
el_extra_params
:
[]
cl_client_image
:
ethpandaops/lighthouse:unstable-c55608b
beacon_extra_params
:
-
"
--always-prefer-builder-payload"
-
"
--disable-peer-scoring"
network_params
:
capella_fork_epoch
:
0
seconds_per_slot
:
12
network_config
:
deneb_fork_epoch
:
1
mev_params
:
mev_flood_seconds_per_bundle
:
12
mev_flood_extra_args
:
-
"
--txsPerBundle=300"
mev_flood_image
:
flashbots/mev-flood:0.0.9
mev_relay_image
:
flashbots/mev-boost-relay:0.27.0
mev_relay_image
:
flashbots/mev-boost-relay:0.28.0a7
mev_boost_image
:
flashbots/mev-boost:1.6.4844.dev5
mev_builder_image
:
flashbots/builder:1.13.2.4844.dev7-4d161de
main.star
View file @
91794e9f
input_parser = import_module("./src/package_io/input_parser.star")
constants = import_module("./src/package_io/constants.star")
participant_network = import_module("./src/participant_network.star")
shared_utils = import_module("./src/shared_utils/shared_utils.star")
static_files = import_module("./src/static_files/static_files.star")
genesis_constants = import_module(
"./src/prelaunch_data_generator/genesis_constants/genesis_constants.star"
...
...
@@ -239,13 +239,16 @@ def run(plan, args={}):
all_mevboost_contexts = []
if mev_endpoints:
for index, participant in enumerate(all_participants):
index_str = shared_utils.zfill_custom(
index + 1, len(str(len(all_participants)))
)
if args_with_right_defaults.participants[index].validator_count != 0:
mev_boost_launcher = mev_boost.new_mev_boost_launcher(
MEV_BOOST_SHOULD_CHECK_RELAY, mev_endpoints
)
mev_boost_service_name = "{0}-{1}-{2}-{3}".format(
input_parser.MEV_BOOST_SERVICE_NAME_PREFIX,
index,
index
_str
,
participant.cl_client_type,
participant.el_client_type,
)
...
...
src/mev/mev_relay/mev_relay_launcher.star
View file @
91794e9f
...
...
@@ -83,6 +83,8 @@ def launch_mev_relay(
"DENEB_FORK_VERSION": constants.DENEB_FORK_VERSION,
"GENESIS_VALIDATORS_ROOT": validator_root,
"SEC_PER_SLOT": str(seconds_per_slot),
"LOG_LEVEL": "debug",
"DB_TABLE_PREFIX": "custom",
}
redis_url = "{}:{}".format(redis.hostname, redis.port_number)
...
...
src/package_io/input_parser.star
View file @
91794e9f
constants = import_module(".
./package_io
/constants.star")
constants = import_module("./constants.star")
shared_utils = import_module("../shared_utils/shared_utils.star")
genesis_constants = import_module(
"../prelaunch_data_generator/genesis_constants/genesis_constants.star"
)
...
...
@@ -517,9 +517,12 @@ def enrich_disable_peer_scoring(parsed_arguments_dict):
# TODO perhaps clean this up into a map
def enrich_mev_extra_params(parsed_arguments_dict, mev_prefix, mev_port, mev_type):
for index, participant in enumerate(parsed_arguments_dict["participants"]):
index_str = shared_utils.zfill_custom(
index + 1, len(str(len(parsed_arguments_dict["participants"])))
)
mev_url = "http://{0}-{1}-{2}-{3}:{4}".format(
MEV_BOOST_SERVICE_NAME_PREFIX,
index,
index
_str
,
participant["cl_client_type"],
participant["el_client_type"],
mev_port,
...
...
@@ -529,6 +532,7 @@ def enrich_mev_extra_params(parsed_arguments_dict, mev_prefix, mev_port, mev_typ
participant["validator_extra_params"].append("--builder-proposals")
participant["beacon_extra_params"].append("--builder={0}".format(mev_url))
if participant["cl_client_type"] == "lodestar":
participant["validator_extra_params"].append("--builder")
participant["beacon_extra_params"].append("--builder")
participant["beacon_extra_params"].append(
"--builder.urls={0}".format(mev_url)
...
...
@@ -553,7 +557,9 @@ def enrich_mev_extra_params(parsed_arguments_dict, mev_prefix, mev_port, mev_typ
)
num_participants = len(parsed_arguments_dict["participants"])
index_str = shared_utils.zfill_custom(
num_participants + 1, len(str(num_participants + 1))
)
if mev_type == "full":
mev_participant = default_participant()
mev_participant["el_client_type"] = (
...
...
@@ -577,8 +583,8 @@ def enrich_mev_extra_params(parsed_arguments_dict, mev_prefix, mev_port, mev_typ
"el_extra_params": [
"--builder",
"--builder.remote_relay_endpoint=http://mev-relay-api:9062",
"--builder.beacon_endpoints=http://cl-{0}-lighthouse-geth:4000".format(
num_participants + 1
"--builder.beacon_endpoints=http://cl-{0}-lighthouse-geth
-builder
:4000".format(
index_str
),
"--builder.bellatrix_fork_version={0}".format(
constants.BELLATRIX_FORK_VERSION
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment