Skip to content

Commit

Permalink
feat: enable teku split beacon <> validator setup (#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabasbusa authored Dec 14, 2023
1 parent f49185b commit 51f76bd
Show file tree
Hide file tree
Showing 4 changed files with 266 additions and 118 deletions.
21 changes: 21 additions & 0 deletions .github/tests/split-teku.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
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: []
6 changes: 1 addition & 5 deletions src/cl/nimbus/nimbus_launcher.star
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ VALIDATOR_MAX_MEMORY = 512
DEFAULT_VALIDATOR_IMAGE_ENTRYPOINT = ["nimbus_validator_client"]

VALIDATOR_METRICS_PATH = "/metrics"

VALIDATOR_KEYS_DIRPATH_ON_SERVICE_CONTAINER = "$HOME/validator-keys"
VALIDATOR_SECRETS_DIRPATH_ON_SERVICE_CONTAINER = "$HOME/validator-secrets"

# ---------------------------------- Genesis Files ----------------------------------

# Nimbus requires that its data directory already exists (because it expects you to bind-mount it), so we
Expand Down Expand Up @@ -360,7 +356,7 @@ def get_beacon_config(
files = {
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[
VALIDATOR_KEYS_MOUNTPOINT_ON_CLIENTS
] = node_keystore_files.files_artifact_uuid
Expand Down
Loading

0 comments on commit 51f76bd

Please sign in to comment.