File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ services:
3636 FEE_RECIPIENT_ADDRESS : " "
3737 ENABLE_DOPPELGANGER : " true"
3838 EXTRA_OPTS : " "
39+ BACKUP_BEACON_NODES : " "
3940 volumes :
4041 - nimbus-validators-data:/home/user/nimbus-eth2/build/data
4142 restart : unless-stopped
Original file line number Diff line number Diff line change @@ -14,6 +14,14 @@ SIGNER_API_URL=$(get_signer_api_url "${NETWORK}" "${SUPPORTED_NETWORKS}")
1414BEACON_API_URL=$( get_beacon_api_url " ${NETWORK} " " ${SUPPORTED_NETWORKS} " " ${CLIENT} " )
1515MEVBOOST_FLAG=$( get_mevboost_flag " ${NETWORK} " " ${MEVBOOST_FLAG_KEY} " " ${SKIP_MEVBOOST_URL} " )
1616
17+
18+ BACKUP_BEACON_FLAGS=" "
19+ if [ -n " ${BACKUP_BEACON_NODES} " ]; then
20+ for node in $( echo " ${BACKUP_BEACON_NODES} " | tr ' ,' ' ' ) ; do
21+ BACKUP_BEACON_FLAGS=" ${BACKUP_BEACON_FLAGS} --beacon-node=${node} "
22+ done
23+ fi
24+
1725echo " [INFO - entrypoint] Running validator service"
1826
1927FLAGS=" --log-level=$LOG_TYPE \
@@ -31,7 +39,9 @@ FLAGS="--log-level=$LOG_TYPE \
3139 --metrics-address=0.0.0.0 \
3240 --metrics-port=8008 \
3341 --graffiti=$VALID_GRAFFITI \
34- --beacon-node=$BEACON_API_URL $MEVBOOST_FLAG $EXTRA_OPTS "
42+ --beacon-node=$BEACON_API_URL \
43+ $BACKUP_BEACON_FLAGS \
44+ $MEVBOOST_FLAG $EXTRA_OPTS "
3545
3646# shellcheck disable=SC2086
3747exec ${NIMBUS_BIN} $FLAGS
You can’t perform that action at this time.
0 commit comments