Skip to content

Commit 998063f

Browse files
authored
fix: provide --network-custom-config-path to Vero (ethereum#905)
As of `v0.9.0` Vero [requires a network to be specified as a CLI argument](https://github.com/serenita-org/vero/releases/tag/v0.9.0). This PR adds that to the Kurtosis definition for the Vero VC service. (In case you're wondering - how did Vero not have a `--network` flag before? It used to load all the spec values from the connected beacon node(s) and would then dynamically create all necessary SSZ classes.) I tested this manually with the `.github/tests/vero-all.yaml` config and have been using this version for the last few months while preparing for Pectra.
1 parent 53602f1 commit 998063f

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/vc/vc_launcher.star

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ def launch(
159159
fail("vero VC doesn't support the Keymanager API")
160160
config = vero.get_config(
161161
participant=participant,
162+
el_cl_genesis_data=launcher.el_cl_genesis_data,
162163
image=image,
163164
global_log_level=global_log_level,
164165
beacon_http_url=beacon_http_url,

src/vc/vero.star

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ VERBOSITY_LEVELS = {
1414

1515
def get_config(
1616
participant,
17+
el_cl_genesis_data,
1718
image,
1819
global_log_level,
1920
beacon_http_url,
@@ -30,6 +31,10 @@ def get_config(
3031
)
3132

3233
cmd = [
34+
"--network=custom",
35+
"--network-custom-config-path="
36+
+ constants.GENESIS_CONFIG_MOUNT_PATH_ON_CONTAINER
37+
+ "/config.yaml",
3338
"--remote-signer-url={0}".format(remote_signer_context.http_url),
3439
"--beacon-node-urls=" + beacon_http_url,
3540
"--fee-recipient=" + constants.VALIDATING_REWARDS_ACCOUNT,
@@ -43,6 +48,10 @@ def get_config(
4348
# this is a repeated<proto type>, we convert it into Starlark
4449
cmd.extend([param for param in participant.vc_extra_params])
4550

51+
files = {
52+
constants.GENESIS_DATA_MOUNTPOINT_ON_CLIENTS: el_cl_genesis_data.files_artifact_uuid,
53+
}
54+
4655
public_ports = {}
4756
if port_publisher.vc_enabled:
4857
public_ports_for_component = shared_utils.get_public_ports_for_component(
@@ -61,6 +70,7 @@ def get_config(
6170
"ports": ports,
6271
"public_ports": public_ports,
6372
"cmd": cmd,
73+
"files": files,
6474
"env_vars": participant.vc_extra_env_vars,
6575
"labels": shared_utils.label_maker(
6676
client=constants.VC_TYPE.vero,

0 commit comments

Comments
 (0)