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
51f76bd1
Unverified
Commit
51f76bd1
authored
Dec 14, 2023
by
Barnabas Busa
Committed by
GitHub
Dec 14, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: enable teku split beacon <> validator setup (#409)
parent
f49185b2
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
266 additions
and
118 deletions
+266
-118
split-teku.yaml
.github/tests/split-teku.yaml
+21
-0
nimbus_launcher.star
src/cl/nimbus/nimbus_launcher.star
+1
-5
teku_launcher.star
src/cl/teku/teku_launcher.star
+236
-112
validator_keystore_generator.star
...tor/validator_keystores/validator_keystore_generator.star
+8
-1
No files found.
.github/tests/split-teku.yaml
0 → 100644
View file @
51f76bd1
participants
:
-
el_client_type
:
geth
cl_client_type
:
teku
cl_split_mode_enabled
:
true
validator_count
:
0
-
el_client_type
:
nethermind
cl_client_type
:
teku
cl_split_mode_enabled
:
true
-
el_client_type
:
erigon
cl_client_type
:
teku
cl_split_mode_enabled
:
true
-
el_client_type
:
besu
cl_client_type
:
teku
cl_split_mode_enabled
:
true
-
el_client_type
:
reth
cl_client_type
:
teku
cl_split_mode_enabled
:
true
-
el_client_type
:
ethereumjs
cl_client_type
:
teku
cl_split_mode_enabled
:
true
additional_services
:
[]
src/cl/nimbus/nimbus_launcher.star
View file @
51f76bd1
...
@@ -47,10 +47,6 @@ VALIDATOR_MAX_MEMORY = 512
...
@@ -47,10 +47,6 @@ VALIDATOR_MAX_MEMORY = 512
DEFAULT_VALIDATOR_IMAGE_ENTRYPOINT = ["nimbus_validator_client"]
DEFAULT_VALIDATOR_IMAGE_ENTRYPOINT = ["nimbus_validator_client"]
VALIDATOR_METRICS_PATH = "/metrics"
VALIDATOR_METRICS_PATH = "/metrics"
VALIDATOR_KEYS_DIRPATH_ON_SERVICE_CONTAINER = "$HOME/validator-keys"
VALIDATOR_SECRETS_DIRPATH_ON_SERVICE_CONTAINER = "$HOME/validator-secrets"
# ---------------------------------- Genesis Files ----------------------------------
# ---------------------------------- Genesis Files ----------------------------------
# Nimbus requires that its data directory already exists (because it expects you to bind-mount it), so we
# Nimbus requires that its data directory already exists (because it expects you to bind-mount it), so we
...
@@ -360,7 +356,7 @@ def get_beacon_config(
...
@@ -360,7 +356,7 @@ def get_beacon_config(
files = {
files = {
constants.GENESIS_DATA_MOUNTPOINT_ON_CLIENTS: el_cl_genesis_data.files_artifact_uuid,
constants.GENESIS_DATA_MOUNTPOINT_ON_CLIENTS: el_cl_genesis_data.files_artifact_uuid,
}
}
if node_keystore_files:
if node_keystore_files
!= None and not split_mode_enabled
:
files[
files[
VALIDATOR_KEYS_MOUNTPOINT_ON_CLIENTS
VALIDATOR_KEYS_MOUNTPOINT_ON_CLIENTS
] = node_keystore_files.files_artifact_uuid
] = node_keystore_files.files_artifact_uuid
...
...
src/cl/teku/teku_launcher.star
View file @
51f76bd1
This diff is collapsed.
Click to expand it.
src/prelaunch_data_generator/validator_keystores/validator_keystore_generator.star
View file @
51f76bd1
...
@@ -102,8 +102,15 @@ def generate_validator_keystores(plan, mnemonic, participants):
...
@@ -102,8 +102,15 @@ def generate_validator_keystores(plan, mnemonic, participants):
start_index,
start_index,
stop_index,
stop_index,
)
)
teku_permissions_cmd = (
"chmod 0777 -R " + output_dirpath + "/" + TEKU_KEYS_DIRNAME
)
raw_secret_permissions_cmd = (
"chmod 0600 -R " + output_dirpath + "/" + RAW_SECRETS_DIRNAME
)
all_sub_command_strs.append(generate_keystores_cmd)
all_sub_command_strs.append(generate_keystores_cmd)
all_sub_command_strs.append(teku_permissions_cmd)
all_sub_command_strs.append(raw_secret_permissions_cmd)
all_output_dirpaths.append(output_dirpath)
all_output_dirpaths.append(output_dirpath)
command_str = " && ".join(all_sub_command_strs)
command_str = " && ".join(all_sub_command_strs)
...
...
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