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
85a559fa
Commit
85a559fa
authored
Nov 11, 2022
by
Gyanendra Mishra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do a wait / fact for finalized epoch
parent
201c8caf
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
15 additions
and
8 deletions
+15
-8
README.md
README.md
+2
-1
main.star
main.star
+6
-3
cl_client_context.star
src/participant_network/cl/cl_client_context.star
+2
-4
lighthouse_launcher.star
...articipant_network/cl/lighthouse/lighthouse_launcher.star
+1
-0
lodestar_launcher.star
src/participant_network/cl/lodestar/lodestar_launcher.star
+1
-0
nimbus_launcher.star
src/participant_network/cl/nimbus/nimbus_launcher.star
+1
-0
prysm_launcher.star
src/participant_network/cl/prysm/prysm_launcher.star
+1
-0
teku_launcher.star
src/participant_network/cl/teku/teku_launcher.star
+1
-0
No files found.
README.md
View file @
85a559fa
...
@@ -8,7 +8,8 @@ This is the Startosis version of the popular [eth2-merge-kurtosis-module](https:
...
@@ -8,7 +8,8 @@ This is the Startosis version of the popular [eth2-merge-kurtosis-module](https:
-
[
x
]
main.star
-
[
x
]
main.star
-
[
x
]
launch forkmon, prometheus, grafana, testnet_verifier, transaction_spammer
-
[
x
]
launch forkmon, prometheus, grafana, testnet_verifier, transaction_spammer
-
[
]
do a wait for epoch finalization
-
[
x
]
do a wait for epoch finalization
-
[
]
assert that finalization epoch > 0
-
[
x
]
Module IO (this is blocked on Startosis Args working)
-
[
x
]
Module IO (this is blocked on Startosis Args working)
-
[
x
]
forkmon (this is blocked on CL clients running)
-
[
x
]
forkmon (this is blocked on CL clients running)
-
[
x
]
prometheus (this is blocked on CL clients running)
-
[
x
]
prometheus (this is blocked on CL clients running)
...
...
main.star
View file @
85a559fa
...
@@ -16,6 +16,8 @@ GRAFANA_USER = "admin"
...
@@ -16,6 +16,8 @@ GRAFANA_USER = "admin"
GRAFANA_PASSWORD = "admin"
GRAFANA_PASSWORD = "admin"
GRAFANA_DASHBOARD_PATH_URL = "/d/QdTOwy-nz/eth2-merge-kurtosis-module-dashboard?orgId=1"
GRAFANA_DASHBOARD_PATH_URL = "/d/QdTOwy-nz/eth2-merge-kurtosis-module-dashboard?orgId=1"
FIRST_NODE_FINALIZATION_FACT = "cl-boot-finalization-fact"
HTTP_PORT_ID_FOR_FACT = "http"
def main(input_args):
def main(input_args):
input_args_with_right_defaults = module_io.ModuleInput(parse_input(input_args))
input_args_with_right_defaults = module_io.ModuleInput(parse_input(input_args))
...
@@ -66,8 +68,6 @@ def main(input_args):
...
@@ -66,8 +68,6 @@ def main(input_args):
if input_args_with_right_defaults.wait_for_verifications:
if input_args_with_right_defaults.wait_for_verifications:
print("Running synchrnous testnet verifier")
print("Running synchrnous testnet verifier")
# As we don't get the verification output we can't print it
# TODO verify if this behavior is okay
run_synchronous_testnet_verification(input_args_with_right_defaults, all_el_client_contexts, all_cl_client_contexts)
run_synchronous_testnet_verification(input_args_with_right_defaults, all_el_client_contexts, all_cl_client_contexts)
print("Verification succeeded")
print("Verification succeeded")
else:
else:
...
@@ -77,7 +77,10 @@ def main(input_args):
...
@@ -77,7 +77,10 @@ def main(input_args):
if input_args_with_right_defaults.wait_for_finalization:
if input_args_with_right_defaults.wait_for_finalization:
print("Waiting for the first finalized epoch")
print("Waiting for the first finalized epoch")
first_cl_client = all_cl_client_contexts[0]
first_cl_client = all_cl_client_contexts[0]
# TODO add fact and wait to emulate this behavior
first_cl_client_id = first_cl_client.beacon_service_id
define_fact(service_id = first_cl_client.first_cl_client_id, fact_name = FIRST_NODE_FINALIZATION_FACT, fact_recipe = struct(method= "GET", endpoint = "eth/v1/beacon/states/head/finality_checkpoints", content_type = "application/json", port_id = HTTP_PORT_ID_FOR_FACT, field_extractor = ".data.finalized.epoch"))
finalized_epoch = wait(service_id = first_cl_client_id, fact_name = FIRST_NODE_FINALIZATION_FACT)
# TODO make an assertion on the finalized_epoch > 0
print("First finalized epoch occurred successfully")
print("First finalized epoch occurred successfully")
...
...
src/participant_network/cl/cl_client_context.star
View file @
85a559fa
# differs from kurtosis-tech/eth2-merge-kurtosis-module in the sense it dosen't have the rest_client
def new_cl_client_context(client_name, enr, ip_addr, http_port_num, cl_nodes_metrics_info, beacon_service_id):
# broader use of the rest client allows for waiting for the first cl context to be heahty in module.go
# TODO remove the above comment when things are working
def new_cl_client_context(client_name, enr, ip_addr, http_port_num, cl_nodes_metrics_info):
return struct(
return struct(
client_name = client_name,
client_name = client_name,
enr = enr,
enr = enr,
ip_addr = ip_addr,
ip_addr = ip_addr,
http_port_num = http_port_num,
http_port_num = http_port_num,
cl_nodes_metrics_info = cl_nodes_metrics_info,
cl_nodes_metrics_info = cl_nodes_metrics_info,
beacon_service_id = beacon_service_id
)
)
src/participant_network/cl/lighthouse/lighthouse_launcher.star
View file @
85a559fa
...
@@ -149,6 +149,7 @@ def launch(
...
@@ -149,6 +149,7 @@ def launch(
beacon_service.ip_address,
beacon_service.ip_address,
BEACON_HTTP_PORT_NUM,
BEACON_HTTP_PORT_NUM,
nodes_metrics_info,
nodes_metrics_info,
beacon_node_service_id,
)
)
return result
return result
...
...
src/participant_network/cl/lodestar/lodestar_launcher.star
View file @
85a559fa
...
@@ -135,6 +135,7 @@ def launch(
...
@@ -135,6 +135,7 @@ def launch(
beacon_service.ip_address,
beacon_service.ip_address,
HTTP_PORT_NUM,
HTTP_PORT_NUM,
nodes_metrics_info,
nodes_metrics_info,
beacon_node_service_id
)
)
return result
return result
...
...
src/participant_network/cl/nimbus/nimbus_launcher.star
View file @
85a559fa
...
@@ -116,6 +116,7 @@ def launch(
...
@@ -116,6 +116,7 @@ def launch(
beacon_service.ip_address,
beacon_service.ip_address,
HTTP_PORT_NUM,
HTTP_PORT_NUM,
nodes_metrics_info,
nodes_metrics_info,
service_id,
)
)
return result
return result
...
...
src/participant_network/cl/prysm/prysm_launcher.star
View file @
85a559fa
...
@@ -161,6 +161,7 @@ def launch(
...
@@ -161,6 +161,7 @@ def launch(
beacon_service.ip_address,
beacon_service.ip_address,
HTTP_PORT_NUM,
HTTP_PORT_NUM,
nodes_metrics_info,
nodes_metrics_info,
beacon_node_service_id
)
)
return result
return result
...
...
src/participant_network/cl/teku/teku_launcher.star
View file @
85a559fa
...
@@ -122,6 +122,7 @@ def launch(
...
@@ -122,6 +122,7 @@ def launch(
beacon_service.ip_address,
beacon_service.ip_address,
HTTP_PORT_NUM,
HTTP_PORT_NUM,
nodes_metrics_info,
nodes_metrics_info,
service_id
)
)
return result
return result
...
...
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