Commit f6326fe2 authored by Barnabas Busa's avatar Barnabas Busa Committed by GitHub

fix: remove un-needed prysm vc check (#542)

parent a1ae7081
......@@ -36,16 +36,11 @@ def get_config(
prysm_password_relative_filepath,
)
if cl_context.client_name != constants.CL_TYPE.prysm:
beacon_grpc_url = beacon_http_url[7:] # remove the "http://" prefix
cmd = [
"--accept-terms-of-use=true", # it's mandatory in order to run the node
"--chain-config-file="
+ constants.GENESIS_CONFIG_MOUNT_PATH_ON_CONTAINER
+ "/config.yaml",
"--beacon-rpc-provider=" + cl_context.beacon_grpc_url,
"--beacon-rest-api-provider=" + cl_context.beacon_grpc_url,
"--wallet-dir=" + validator_keys_dirpath,
"--wallet-password-file=" + validator_secrets_dirpath,
"--suggested-fee-recipient=" + constants.VALIDATING_REWARDS_ACCOUNT,
......@@ -70,7 +65,12 @@ def get_config(
]
if cl_context.client_name != constants.CL_TYPE.prysm:
cmd.append("--beacon-rpc-provider=" + beacon_http_url)
cmd.append("--beacon-rest-api-provider=" + beacon_http_url)
cmd.append("--enable-beacon-rest-api")
else: # we are using Prysm CL
cmd.append("--beacon-rpc-provider=" + cl_context.beacon_grpc_url)
cmd.append("--beacon-rest-api-provider=" + cl_context.beacon_grpc_url)
if len(extra_params) > 0:
# this is a repeated<proto type>, we convert it into Starlark
......
......@@ -161,13 +161,6 @@ def launch(
keymanager_enabled=keymanager_enabled,
)
elif vc_type == constants.VC_TYPE.prysm:
# Prysm VC only works with Prysm beacon node right now
if cl_context.client_name != constants.CL_TYPE.prysm:
fail(
cl_context.client_name
+ "Prysm VC is only compatible with Prysm beacon node"
)
config = prysm.get_config(
el_cl_genesis_data=launcher.el_cl_genesis_data,
image=image,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment