@@ -36,16 +36,11 @@ def get_config(
3636 prysm_password_relative_filepath ,
3737 )
3838
39- if cl_context .client_name != constants .CL_TYPE .prysm :
40- beacon_grpc_url = beacon_http_url [7 :] # remove the "http://" prefix
41-
4239 cmd = [
4340 "--accept-terms-of-use=true" , # it's mandatory in order to run the node
4441 "--chain-config-file="
4542 + constants .GENESIS_CONFIG_MOUNT_PATH_ON_CONTAINER
4643 + "/config.yaml" ,
47- "--beacon-rpc-provider=" + cl_context .beacon_grpc_url ,
48- "--beacon-rest-api-provider=" + cl_context .beacon_grpc_url ,
4944 "--wallet-dir=" + validator_keys_dirpath ,
5045 "--wallet-password-file=" + validator_secrets_dirpath ,
5146 "--suggested-fee-recipient=" + constants .VALIDATING_REWARDS_ACCOUNT ,
@@ -70,7 +65,12 @@ def get_config(
7065 ]
7166
7267 if cl_context .client_name != constants .CL_TYPE .prysm :
68+ cmd .append ("--beacon-rpc-provider=" + beacon_http_url )
69+ cmd .append ("--beacon-rest-api-provider=" + beacon_http_url )
7370 cmd .append ("--enable-beacon-rest-api" )
71+ else : # we are using Prysm CL
72+ cmd .append ("--beacon-rpc-provider=" + cl_context .beacon_grpc_url )
73+ cmd .append ("--beacon-rest-api-provider=" + cl_context .beacon_grpc_url )
7474
7575 if len (extra_params ) > 0 :
7676 # this is a repeated<proto type>, we convert it into Starlark
0 commit comments