Skip to content

Commit

Permalink
feat: add trusted setup file to teku (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
barnabasbusa committed Oct 20, 2023
1 parent a8afcef commit 605e155
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/cl/teku/teku_launcher.star
Expand Up @@ -267,6 +267,7 @@ def get_config(
"--metrics-categories=BEACON,PROCESS,LIBP2P,JVM,NETWORK,PROCESS",
"--metrics-port={0}".format(METRICS_PORT_NUM),
# ^^^^^^^^^^^^^^^^^^^ METRICS CONFIG ^^^^^^^^^^^^^^^^^^^^^
"--Xtrusted-setup=" + constants.KZG_DATA_DIRPATH_ON_CLIENT_CONTAINER,
]

# Depending on whether we're using a node keystore, we'll need to add the validator flags
Expand Down
4 changes: 3 additions & 1 deletion src/package_io/constants.star
Expand Up @@ -33,12 +33,14 @@ DEFAULT_SNOOPER_IMAGE = "parithoshj/json_rpc_snoop:v1.0.0-x86"

ARCHIVE_MODE = True

JWT_AUTH_PATH = "/data/data/jwt/jwtsecret"

GENESIS_DATA_MOUNTPOINT_ON_CLIENTS = "/data"
GENESIS_CONFIG_MOUNT_PATH_ON_CONTAINER = (
GENESIS_DATA_MOUNTPOINT_ON_CLIENTS + "/data/custom_config_data"
)

JWT_AUTH_PATH = GENESIS_DATA_MOUNTPOINT_ON_CLIENTS + "/data/jwt/jwtsecret"

KZG_DATA_DIRPATH_ON_CLIENT_CONTAINER = (
GENESIS_CONFIG_MOUNT_PATH_ON_CONTAINER + "/trusted_setup.txt"
)
Expand Down

0 comments on commit 605e155

Please sign in to comment.