From 05affbbc0b34549c9acc9f9f5a59b07880bfb7ca Mon Sep 17 00:00:00 2001 From: Luka Gulin Date: Mon, 7 Jul 2025 10:57:27 +0200 Subject: [PATCH 1/2] add support for backup beacon nodes --- docker-compose.yml | 1 + validator/entrypoint.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 2914ef6..555ec18 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -32,6 +32,7 @@ services: EXTRA_OPTS: "" FEE_RECIPIENT_ADDRESS: "" VERBOSITY: info + BACKUP_BEACON_NODES: "" volumes: beacon-chain-data: {} validator-data: {} diff --git a/validator/entrypoint.sh b/validator/entrypoint.sh index 7df9259..fc7f856 100755 --- a/validator/entrypoint.sh +++ b/validator/entrypoint.sh @@ -52,7 +52,7 @@ esac FLAGS="--datadir=$DATA_DIR \ --wallet-dir=$WALLET_DIR \ --monitoring-host=0.0.0.0 \ - --beacon-rpc-provider=$BEACON_RPC_PROVIDER \ + --beacon-rpc-provider=$BEACON_RPC_PROVIDER$( [ -n "${BACKUP_BEACON_NODES}" ] && echo ",${BACKUP_BEACON_NODES}" ) \ --beacon-rpc-gateway-provider=$BEACON_RPC_GATEWAY_PROVIDER \ --validators-external-signer-url=$SIGNER_API_URL \ --grpc-gateway-host=0.0.0.0 \ From 50bf28d7572c12a4db9c62d7743cdf66d538fd85 Mon Sep 17 00:00:00 2001 From: Luka Gulin Date: Mon, 25 Aug 2025 14:13:24 +0200 Subject: [PATCH 2/2] flag updates --- beacon-chain/entrypoint.sh | 6 +++--- docker-compose.yml | 1 - validator/entrypoint.sh | 8 ++++---- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/beacon-chain/entrypoint.sh b/beacon-chain/entrypoint.sh index f96ae89..7d87b89 100755 --- a/beacon-chain/entrypoint.sh +++ b/beacon-chain/entrypoint.sh @@ -66,9 +66,9 @@ FLAGS="--accept-terms-of-use \ --jwt-secret=$JWT_FILE_PATH \ --execution-endpoint=$ENGINE_URL \ --monitoring-host=0.0.0.0 \ - --grpc-gateway-host=0.0.0.0 \ - --grpc-gateway-port=$BEACON_API_PORT \ - --grpc-gateway-corsdomain=$CORSDOMAIN \ + --http-host=0.0.0.0 \ + --http-port=$BEACON_API_PORT \ + --http-cors-domain=$CORSDOMAIN \ --rpc-host=0.0.0.0 \ --verbosity=$VERBOSITY \ --p2p-tcp-port=$P2P_TCP_PORT \ diff --git a/docker-compose.yml b/docker-compose.yml index a1814ac..62fcf30 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -27,7 +27,6 @@ services: DATA_DIR: /root/.eth2validators restart: on-failure environment: - LOG_TYPE: INFO GRAFFITI: validating_from_DAppNode EXTRA_OPTS: "" FEE_RECIPIENT_ADDRESS: "" diff --git a/validator/entrypoint.sh b/validator/entrypoint.sh index 8942a62..1ddab17 100755 --- a/validator/entrypoint.sh +++ b/validator/entrypoint.sh @@ -23,9 +23,9 @@ MEVBOOST_FLAG=$(get_mevboost_flag "${NETWORK}" "${MEVBOOST_FLAG_KEY}" "${SKIP_ME # Example: http://localhost:4000 -> localhost BEACON_DOMAIN="$(echo "$BEACON_API_URL" | cut -d'/' -f3 | cut -d':' -f1)" -# Prepare API endpoints (no http:// prefix && add port) +# Prepare API endpoint (no http:// prefix && add port) BEACON_RPC_PROVIDER="${BEACON_DOMAIN}:4000" -BEACON_RPC_GATEWAY_PROVIDER="${BEACON_DOMAIN}:3500" +BEACON_REST_API_PROVIDER="http://${BEACON_DOMAIN}:3500" case "$NETWORK" in "hoodi") @@ -49,8 +49,8 @@ esac FLAGS="--datadir=$DATA_DIR \ --wallet-dir=$WALLET_DIR \ --monitoring-host=0.0.0.0 \ - --beacon-rpc-provider=$BEACON_RPC_PROVIDER$( [ -n "${BACKUP_BEACON_NODES}" ] && echo ",${BACKUP_BEACON_NODES}" ) \ - --beacon-rpc-gateway-provider=$BEACON_RPC_GATEWAY_PROVIDER \ + --beacon-rpc-provider=$BEACON_RPC_PROVIDER \ + --beacon-rest-api-provider=$BEACON_REST_API_PROVIDER$( [ -n "${BACKUP_BEACON_NODES}" ] && echo ",${BACKUP_BEACON_NODES}" ) \ --validators-external-signer-url=$SIGNER_API_URL \ --grpc-gateway-host=0.0.0.0 \ --grpc-gateway-port=$VALIDATOR_API_PORT \