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
744da95d
Commit
744da95d
authored
Nov 22, 2022
by
Gyanendra Mishra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
path fix
parent
b8df90c3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
22 deletions
+22
-22
nimbus_launcher.star
src/participant_network/cl/nimbus/nimbus_launcher.star
+4
-4
prysm_launcher.star
src/participant_network/cl/prysm/prysm_launcher.star
+18
-18
No files found.
src/participant_network/cl/nimbus/nimbus_launcher.star
View file @
744da95d
...
...
@@ -122,10 +122,10 @@ def get_config(
)
# For some reason, Nimbus takes in the parent directory of the config file (rather than the path to the config file itself)
genesis_config_parent_dirpath_on_client =
path_join(GENESIS_DATA_MOUNTPOINT_ON_CLIENT,
path_dir(genesis_data.config_yml_rel_filepath))
jwt_secret_filepath = path_join(GENESIS_DATA_MOUNTPOINT_ON_CLIENT, genesis_data.jwt_secret_rel_filepath)
validator_keys_dirpath = path_join(VALIDATOR_KEYS_MOUNTPOINT_ON_CLIENT, node_keystore_files.nimbus_keys_relative_dirpath)
validator_secrets_dirpath = path_join(VALIDATOR_KEYS_MOUNTPOINT_ON_CLIENT, node_keystore_files.raw_secrets_relative_dirpath)
genesis_config_parent_dirpath_on_client =
shared_utils.path_join(GENESIS_DATA_MOUNTPOINT_ON_CLIENT, shared_utils.
path_dir(genesis_data.config_yml_rel_filepath))
jwt_secret_filepath =
shared_utils.
path_join(GENESIS_DATA_MOUNTPOINT_ON_CLIENT, genesis_data.jwt_secret_rel_filepath)
validator_keys_dirpath =
shared_utils.
path_join(VALIDATOR_KEYS_MOUNTPOINT_ON_CLIENT, node_keystore_files.nimbus_keys_relative_dirpath)
validator_secrets_dirpath =
shared_utils.
path_join(VALIDATOR_KEYS_MOUNTPOINT_ON_CLIENT, node_keystore_files.raw_secrets_relative_dirpath)
# Sources for these flags:
# 1) https://github.com/status-im/nimbus-eth2/blob/stable/scripts/launch_local_testnet.sh
...
...
src/participant_network/cl/prysm/prysm_launcher.star
View file @
744da95d
load("github.com/kurtosis-tech/eth2-module/src/shared_utils/shared_utils.star", "new_port_spec", "path_join", "path_dir", "TCP_PROTOCOL", "UDP_PROTOCOL
")
load("github.com/kurtosis-tech/eth2-module/src/module_io/parse_input.star", "get_client_log_level_or_default
")
load("github.com/kurtosis-tech/eth2-module/src/participant_network/cl/cl_client_context.star", "new_cl_client_context
")
load("github.com/kurtosis-tech/eth2-module/src/participant_network/cl/cl_node_metrics_info.star", "new_cl_node_metrics_info
")
load("github.com/kurtosis-tech/eth2-module/src/participant_network/mev_boost/mev_boost_context.star", "mev_boost_endpoint
")
shared_utils = import_module("github.com/kurtosis-tech/eth2-module/src/shared_utils/shared_utils.star
")
parse_input = import_module("github.com/kurtosis-tech/eth2-module/src/module_io/parse_input.star
")
cl_client_context = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/cl/cl_client_context.star
")
cl_node_metrics = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/cl/cl_node_metrics_info.star
")
mev_boost_context_module = import_module("github.com/kurtosis-tech/eth2-module/src/participant_network/mev_boost/mev_boost_context.star
")
module_io = import_types("github.com/kurtosis-tech/eth2-module/types.proto")
...
...
@@ -40,15 +40,15 @@ METRICS_PATH = "/metrics"
PRIVATE_IP_ADDRESS_PLACEHOLDER = "KURTOSIS_IP_ADDR_PLACEHOLDER"
BEACON_NODE_USED_PORTS = {
TCP_DISCOVERY_PORT_ID:
new_port_spec(DISCOVERY_TCP_PORT_NUM,
TCP_PROTOCOL),
UDP_DISCOVERY_PORT_ID:
new_port_spec(DISCOVERY_UDP_PORT_NUM,
UDP_PROTOCOL),
RPC_PORT_ID:
new_port_spec(RPC_PORT_NUM,
TCP_PROTOCOL),
HTTP_PORT_ID:
new_port_spec(HTTP_PORT_NUM,
TCP_PROTOCOL),
BEACON_MONITORING_PORT_ID:
new_port_spec(BEACON_MONITORING_PORT_NUM,
TCP_PROTOCOL),
TCP_DISCOVERY_PORT_ID:
shared_utils.new_port_spec(DISCOVERY_TCP_PORT_NUM, shared_utils.
TCP_PROTOCOL),
UDP_DISCOVERY_PORT_ID:
shared_utils.new_port_spec(DISCOVERY_UDP_PORT_NUM, shared_utils.
UDP_PROTOCOL),
RPC_PORT_ID:
shared_utils.new_port_spec(RPC_PORT_NUM, shared_utils.
TCP_PROTOCOL),
HTTP_PORT_ID:
shared_utils.new_port_spec(HTTP_PORT_NUM, shared_utils.
TCP_PROTOCOL),
BEACON_MONITORING_PORT_ID:
shared_utils.new_port_spec(BEACON_MONITORING_PORT_NUM, shared_utils.
TCP_PROTOCOL),
}
VALIDATOR_NODE_USED_PORTS = {
VALIDATOR_MONITORING_PORT_ID: new_port_spec(VALIDATOR_MONITORING_PORT_NUM, TCP_PROTOCOL),
VALIDATOR_MONITORING_PORT_ID:
shared_utils.
new_port_spec(VALIDATOR_MONITORING_PORT_NUM, TCP_PROTOCOL),
}
PRYSM_LOG_LEVELS = {
...
...
@@ -173,9 +173,9 @@ def get_beacon_config(
el_client_context.engine_rpc_port_num,
)
genesis_config_filepath = path_join(GENESIS_DATA_MOUNT_DIRPATH_ON_SERVICE_CONTAINER, genesis_data.config_yml_rel_filepath)
genesis_ssz_filepath = path_join(GENESIS_DATA_MOUNT_DIRPATH_ON_SERVICE_CONTAINER, genesis_data.genesis_ssz_rel_filepath)
jwt_secret_filepath = path_join(GENESIS_DATA_MOUNT_DIRPATH_ON_SERVICE_CONTAINER, genesis_data.jwt_secret_rel_filepath)
genesis_config_filepath =
shared_utils.
path_join(GENESIS_DATA_MOUNT_DIRPATH_ON_SERVICE_CONTAINER, genesis_data.config_yml_rel_filepath)
genesis_ssz_filepath =
shared_utils.
path_join(GENESIS_DATA_MOUNT_DIRPATH_ON_SERVICE_CONTAINER, genesis_data.genesis_ssz_rel_filepath)
jwt_secret_filepath =
shared_utils.
path_join(GENESIS_DATA_MOUNT_DIRPATH_ON_SERVICE_CONTAINER, genesis_data.jwt_secret_rel_filepath)
cmd = [
...
...
@@ -206,7 +206,7 @@ def get_beacon_config(
cmd.append("--bootstrap-node="+bootnode_context.enr)
if mev_boost_context != None:
cmd.append(("--http-mev-relay{0}".format(mev_boost_endpoint(mev_boost_context))))
cmd.append(("--http-mev-relay{0}".format(mev_boost_
context_module.mev_boost_
endpoint(mev_boost_context))))
if len(extra_params) > 0:
# we do the for loop as otherwise its a proto repeated array
...
...
@@ -237,9 +237,9 @@ def get_validator_config(
prysm_password_artifact_uuid
):
consensus_data_dirpath = path_join(CONSENSUS_DATA_DIRPATH_ON_SERVICE_CONTAINER, service_id)
prysm_keystore_dirpath = path_join(VALIDATOR_KEYS_MOUNT_DIRPATH_ON_SERVICE_CONTAINER, node_keystore_files.prysm_relative_dirpath)
prysm_password_filepath = path_join(PRYSM_PASSWORD_MOUNT_DIRPATH_ON_SERVICE_CONTAINER, prysm_password_relative_filepath)
consensus_data_dirpath =
shared_utils.
path_join(CONSENSUS_DATA_DIRPATH_ON_SERVICE_CONTAINER, service_id)
prysm_keystore_dirpath =
shared_utils.
path_join(VALIDATOR_KEYS_MOUNT_DIRPATH_ON_SERVICE_CONTAINER, node_keystore_files.prysm_relative_dirpath)
prysm_password_filepath =
shared_utils.
path_join(PRYSM_PASSWORD_MOUNT_DIRPATH_ON_SERVICE_CONTAINER, prysm_password_relative_filepath)
cmd = [
"--accept-terms-of-use=true",#it's mandatory in order to run the node
...
...
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