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
5c9ee67e
Commit
5c9ee67e
authored
Nov 11, 2022
by
Gyanendra Mishra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove beacon specifics from teku & nimbus
parent
8b57488d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
38 deletions
+31
-38
README.md
README.md
+1
-1
nimbus_launcher.star
src/participant_network/cl/nimbus/nimbus_launcher.star
+15
-20
teku_launcher.star
src/participant_network/cl/teku/teku_launcher.star
+15
-17
No files found.
README.md
View file @
5c9ee67e
...
...
@@ -75,5 +75,5 @@ This is the Startosis version of the popular [eth2-merge-kurtosis-module](https:
-
[
x
]
cl_rest_client/api_response_objects.go DESCOPED as facts will do this
-
[
x
]
cl_rest_client/el_rest_client - DESCOPED as facts will do this
-
[
x
]
cl_node_metrics_info - pure POJO NO BLOCKERS
-
[
]
get render templates to have the magic strings subsituted with real values
-
[
x
]
get render templates to have the magic strings subsituted with real values
-
[
]
confirm that the 0x30000038 value in
`static_files/genesis-generation-config/cl/config.yaml.tmpl`
is correct - this makes prysm work
\ No newline at end of file
src/participant_network/cl/nimbus/nimbus_launcher.star
View file @
5c9ee67e
...
...
@@ -63,8 +63,8 @@ NIMBUS_LOG_LEVELS = {
module_io.GlobalClientLogLevel.trace: "TRACE",
}
BEACON_ENR_FACT_NAME = "beacon-
enr-fact"
BEACON_HEALTH_FACT_NAME = "beacon-
health-fact"
ENR_FACT_NAME = "
enr-fact"
HEALTH_FACT_NAME = "
health-fact"
def launch(
...
...
@@ -84,33 +84,28 @@ def launch(
extra_params = [param for param in extra_beacon_params] + [param for param in extra_validator_params]
beacon_service_config = get_beacon
_service_config(launcher.cl_genesis_data, image, bootnode_context, el_client_context, mev_boost_context, log_level, node_keystore_files, extra_params)
service_config = get
_service_config(launcher.cl_genesis_data, image, bootnode_context, el_client_context, mev_boost_context, log_level, node_keystore_files, extra_params)
beacon_service = add_service(service_id, beacon_service_config)
beacon_http_port = beacon_service.ports[HTTP_PORT_ID]
nimbus_service = add_service(service_id, service_config)
# TODO the Golang code checks whether its 200, 206 or 503, maybe add that
define_fact(service_id = service_id, fact_name = BEACON_HEALTH_FACT_NAME, fact_recipe = struct(method= "GET", endpoint = "/eth/v1/node/health", content_type = "application/json", port_id = HTTP_PORT_ID))
wait(service_id = service_id, fact_name = BEACON_HEALTH_FACT_NAME)
define_fact(service_id = service_id, fact_name = BEACON_ENR_FACT_NAME, fact_recipe = struct(method= "GET", endpoint = "/eth/v1/node/identity", field_extractor = ".data.enr", content_type = "application/json", port_id = HTTP_PORT_ID))
beacon_node_enr = wait(service_id = service_id, fact_name = BEACON_ENR_FACT_NAME)
define_fact(service_id = service_id, fact_name = HEALTH_FACT_NAME, fact_recipe = struct(method= "GET", endpoint = "/eth/v1/node/health", content_type = "application/json", port_id = HTTP_PORT_ID))
wait(service_id = service_id, fact_name = HEALTH_FACT_NAME)
beacon_metrics_port = beacon_service.ports[METRICS_PORT_ID]
beacon_metrics_url = "{0}:{1}".format(beacon_service.ip_address, beacon_metrics_port.number
)
define_fact(service_id = service_id, fact_name = ENR_FACT_NAME, fact_recipe = struct(method= "GET", endpoint = "/eth/v1/node/identity", field_extractor = ".data.enr", content_type = "application/json", port_id = HTTP_PORT_ID))
node_enr = wait(service_id = service_id, fact_name = ENR_FACT_NAME
)
beacon_node_metrics_info = new_cl_node_metrics_info(service_id, METRICS_PATH, beacon_metrics_url)
nodes_metrics_info = [beacon_node_metrics_info]
metrics_port = nimbus_service.ports[METRICS_PORT_ID]
metrics_url = "{0}:{1}".format(nimbus_service.ip_address, metrics_port.number)
nimbus_node_metrics_info = new_cl_node_metrics_info(service_id, METRICS_PATH, metrics_url)
nodes_metrics_info = [nimbus_node_metrics_info]
# Launch validator node
beacon_http_url = "http://{0}:{1}".format(beacon_service.ip_address, beacon_http_port.number)
result = new_cl_client_context(
"nimbus",
beacon_
node_enr,
beacon
_service.ip_address,
node_enr,
nimbus
_service.ip_address,
HTTP_PORT_NUM,
nodes_metrics_info,
service_id,
...
...
@@ -119,7 +114,7 @@ def launch(
return result
def get_
beacon_
service_config(
def get_service_config(
genesis_data,
image,
boot_cl_client_ctx,
...
...
src/participant_network/cl/teku/teku_launcher.star
View file @
5c9ee67e
...
...
@@ -72,8 +72,8 @@ TEKU_LOG_LEVELS = {
}
BEACON_ENR_FACT_NAME = "beacon-
enr-fact"
BEACON_HEALTH_FACT_NAME = "beacon-
health-fact"
ENR_FACT_NAME = "
enr-fact"
HEALTH_FACT_NAME = "
health-fact"
def launch(
...
...
@@ -93,37 +93,35 @@ def launch(
extra_params = [param for param in extra_beacon_params] + [param for param in extra_validator_params]
beacon_service_config = get_beacon
_service_config(launcher.cl_genesis_data, image, bootnode_context, el_client_context, mev_boost_context, log_level, node_keystore_files, extra_params)
service_config = get
_service_config(launcher.cl_genesis_data, image, bootnode_context, el_client_context, mev_boost_context, log_level, node_keystore_files, extra_params)
beacon_service = add_service(service_id, beacon_service_config)
beacon_http_port = beacon_service.ports[HTTP_PORT_ID]
teku_service = add_service(service_id, service_config)
# TODO the Golang code checks whether its 200, 206 or 503, maybe add that
define_fact(service_id = service_id, fact_name =
BEACON_
HEALTH_FACT_NAME, fact_recipe = struct(method= "GET", endpoint = "/eth/v1/node/health", content_type = "application/json", port_id = HTTP_PORT_ID))
wait(service_id = service_id, fact_name =
BEACON_
HEALTH_FACT_NAME)
define_fact(service_id = service_id, fact_name = HEALTH_FACT_NAME, fact_recipe = struct(method= "GET", endpoint = "/eth/v1/node/health", content_type = "application/json", port_id = HTTP_PORT_ID))
wait(service_id = service_id, fact_name = HEALTH_FACT_NAME)
define_fact(service_id = service_id, fact_name =
BEACON_
ENR_FACT_NAME, fact_recipe = struct(method= "GET", endpoint = "/eth/v1/node/identity", field_extractor = ".data.enr", content_type = "application/json", port_id = HTTP_PORT_ID))
beacon_node_enr = wait(service_id = service_id, fact_name = BEACON_
ENR_FACT_NAME)
define_fact(service_id = service_id, fact_name = ENR_FACT_NAME, fact_recipe = struct(method= "GET", endpoint = "/eth/v1/node/identity", field_extractor = ".data.enr", content_type = "application/json", port_id = HTTP_PORT_ID))
node_enr = wait(service_id = service_id, fact_name =
ENR_FACT_NAME)
beacon_metrics_port = beacon
_service.ports[METRICS_PORT_ID]
beacon_metrics_url = "{0}:{1}".format(beacon_service.ip_address, beacon
_metrics_port.number)
teku_metrics_port = teku
_service.ports[METRICS_PORT_ID]
teku_metrics_url = "{0}:{1}".format(teku_service.ip_address, teku
_metrics_port.number)
beacon_node_metrics_info = new_cl_node_metrics_info(service_id, METRICS_PATH, beacon
_metrics_url)
nodes_metrics_info = [
beacon
_node_metrics_info]
teku_node_metrics_info = new_cl_node_metrics_info(service_id, METRICS_PATH, teku
_metrics_url)
nodes_metrics_info = [
teku
_node_metrics_info]
result = new_cl_client_context(
"teku",
beacon_
node_enr,
beacon
_service.ip_address,
node_enr,
teku
_service.ip_address,
HTTP_PORT_NUM,
nodes_metrics_info,
service_id
)
return result
def get_
beacon_
service_config(
def get_service_config(
genesis_data,
image,
boot_cl_client_ctx,
...
...
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