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
9a76ad36
Commit
9a76ad36
authored
Nov 02, 2022
by
Gyanendra Mishra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added testnet verifier
parent
391c18fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
1 deletion
+65
-1
README.md
README.md
+1
-1
testnet_verifier.star
src/testnet_verifier/testnet_verifier.star
+64
-0
No files found.
README.md
View file @
9a76ad36
...
@@ -11,7 +11,7 @@ This is the Startosis version of the popular [eth2-merge-kurtosis-module](https:
...
@@ -11,7 +11,7 @@ This is the Startosis version of the popular [eth2-merge-kurtosis-module](https:
-
[
x
]
prometheus (this is blocked on CL clients running)
-
[
x
]
prometheus (this is blocked on CL clients running)
-
[
x
]
grafana (this is blocked on prometheus running)
-
[
x
]
grafana (this is blocked on prometheus running)
-
[
]
grafana needs an upload files endpoint in Startosis
-
[
]
grafana needs an upload files endpoint in Startosis
-
[
]
testnet_verifier (this is blocked on CL/EL clients running)
-
[
x
]
testnet_verifier (this is blocked on CL/EL clients running)
-
[
]
transaction_spammer (this is blocked on EL clients running)
-
[
]
transaction_spammer (this is blocked on EL clients running)
-
[
]
participant_network/participant_network
-
[
]
participant_network/participant_network
-
[
]
has most data generation things, needs to start EL/CL clients
-
[
]
has most data generation things, needs to start EL/CL clients
...
...
src/testnet_verifier/testnet_verifier.star
0 → 100644
View file @
9a76ad36
IMAGE_NAME = "marioevz/merge-testnet-verifier:latest"
SERVICE_ID = "testnet-verifier"
# We use Docker exec commands to run the commands we need, so we override the default
SYNCHRONOUS_ENTRYPOINT_ARGS = {
"sleep",
"999999",
}
def launch_testnet_verifier(params, el_client_contexts, cl_client_contexts):
service_config = get_asynchronous_verification_service_config(params, el_client_contexts, cl_client_contexts)
add_service(SERVICE_ID, service_config)
def run_synchronous_testnet_verification(params, el_client_contexts, cl_client_contexts):
service_config = get_synchronous_verification_service_config()
add_service(SERVICE_ID, service_config)
command = get_cmd()
exec(SERVICE_ID, command)
def get_cmd(params, el_client_contexts, cl_client_contexts, add_binary_name):
command = []
if add_binary_name:
command.append("./merge_testnet_verifier")
command.append("--ttd 0")
for el_client_context in el_client_contexts:
command.append("--client")
command.append("{0},http://{1}:{2}".format(el_client_context.client_name, el_client_context.ip_addr, el_client_context.rpc_port_num))
for cl_client_context in cl_client_contexts:
command.append("--client")
command.append("{0},http://{1}:{2}".format(cl_client_context.client_name, cl_client_context.ip_addr, cl_client_context.http_port_num))
command.append("--ttd-epoch-limit 0")
command.append("--verif-epoch-limit")
# TODO make this an actual param
command.append("{0}".fomrat(param.verifications_epoch_limit))
def get_asynchronous_verification_service_config(params, el_client_contexts, cl_client_contexts):
commands = get_cmd(params, el_client_contexts, cl_client_contexts)
return struct(
container_image_name = IMAGE_NAME,
cmd_args = commands,
# TODO remove this when used_ports is optional in add_service
used_ports = {},
)
def get_synchronous_verification_service_config():
return struct(
container_image_name = IMAGE_NAME,
entry_point_args = ENTRYPOINT_ARGS,
# TODO remove this when used_ports is optional in add_service
used_ports = {},
)
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