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
6cc36970
Unverified
Commit
6cc36970
authored
Sep 13, 2023
by
Mario Vega
Committed by
GitHub
Sep 13, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: Mock builder updates (#193)
Required changes for the latest version of the mock builder. cc @parithosh
parent
7606cffa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
8 deletions
+7
-8
main.star
main.star
+1
-1
mock_mev_launcher.star
src/mock_mev/mock_mev_launcher.star
+6
-4
parse_input.star
src/package_io/parse_input.star
+0
-3
No files found.
main.star
View file @
6cc36970
...
...
@@ -64,7 +64,7 @@ def run(plan, args = {}):
el_uri = "{0}:{1}".format(all_el_client_contexts[0].ip_addr, all_el_client_contexts[0].engine_rpc_port_num)
beacon_uri = "{0}:{1}".format(all_cl_client_contexts[0].ip_addr, all_cl_client_contexts[0].http_port_num)
jwt_secret = all_el_client_contexts[0].jwt_secret
endpoint = mock_mev_launcher_module.launch_mock_mev(plan, el_uri, beacon_uri, jwt_secret)
endpoint = mock_mev_launcher_module.launch_mock_mev(plan, el_uri, beacon_uri, jwt_secret
, args_with_right_defaults.global_client_log_level
)
mev_endpoints.append(endpoint)
elif args_with_right_defaults.mev_type and args_with_right_defaults.mev_type == FULL_MEV_TYPE:
el_uri = "http://{0}:{1}".format(all_el_client_contexts[0].ip_addr, all_el_client_contexts[0].rpc_port_num)
...
...
src/mock_mev/mock_mev_launcher.star
View file @
6cc36970
MOCK_MEV_IMAGE = "ethpandaops/mock-builder:latest"
MOCK_MEV_SERVICE_NAME = "mock-mev"
MOCK_MEV_BUILDER_PORT = 18550
D
UMMY_PUB_KEY_THAT_ISNT_VERIFIED = "0xae1c2ca7bbd6f415a5aa5bb4079caf0a5c273104be5fb5e40e2b5a2f080b2f5bd945336f2a9e8ba346299cb65b0f84c
8"
D
EFAULT_MOCK_MEV_PUB_KEY = "0x95fde78acd5f6886ddaf5d0056610167c513d09c1c0efabbc7cdcc69beea113779c4a81e2d24daafc5387dbf6ac5fe4
8"
def launch_mock_mev(plan, el_uri, beacon_uri, jwt_secret):
def launch_mock_mev(plan, el_uri, beacon_uri, jwt_secret
, global_client_log_level
):
mock_builder = plan.add_service(
name = MOCK_MEV_SERVICE_NAME,
config = ServiceConfig(
...
...
@@ -14,8 +14,10 @@ def launch_mock_mev(plan, el_uri, beacon_uri, jwt_secret):
cmd = [
"--jwt-secret={0}".format(jwt_secret),
"--el={0}".format(el_uri),
"--cl={0}".format(beacon_uri)
"--cl={0}".format(beacon_uri),
"--bid-multiplier=5", # TODO: This could be customizable
"--log-level={0}".format(global_client_log_level)
]
)
)
return "http://{0}@{1}:{2}".format(D
UMMY_PUB_KEY_THAT_ISNT_VERIFIED
, mock_builder.ip_address, MOCK_MEV_BUILDER_PORT)
return "http://{0}@{1}:{2}".format(D
EFAULT_MOCK_MEV_PUB_KEY
, mock_builder.ip_address, MOCK_MEV_BUILDER_PORT)
src/package_io/parse_input.star
View file @
6cc36970
...
...
@@ -114,9 +114,6 @@ def parse_input(plan, input_args):
if result.get("mev_type") in ("mock", "full"):
if result["network_params"]["capella_fork_epoch"] == 0:
plan.print("MEV components require a non zero value for the network_params.capella_fork_epoch; setting it to 1 as its 0")
result["network_params"]["capella_fork_epoch"] = 1
result = enrich_mev_extra_params(result, MEV_BOOST_SERVICE_NAME_PREFIX, FLASHBOTS_MEV_BOOST_PORT, result.get("mev_type"))
return struct(
...
...
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