Skip to content

Commit

Permalink
Improve validator flags
Browse files Browse the repository at this point in the history
  • Loading branch information
dappnodedev committed Sep 23, 2024
1 parent b32a496 commit 4dc6229
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
15 changes: 7 additions & 8 deletions beacon-chain/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,21 @@ EXTRA_OPTS=$(add_flag_to_extra_opts_safely "${EXTRA_OPTS}" "--suggested-fee-reci
JWT_SECRET=$(get_jwt_secret_by_network "${NETWORK}")
echo "${JWT_SECRET}" >"${JWT_FILE_PATH}"

FLAGS="
--debug-level=${LOG_LEVEL} \
--network=${NETWORK} \
FLAGS="--debug-level=$LOG_LEVEL \
--network=$NETWORK \
beacon_node \
--datadir=${DATA_DIR} \
--datadir=$DATA_DIR \
--http \
--http-allow-origin=* \
--http-address=0.0.0.0 \
--http-port=${BEACON_API_PORT} \
--port=${P2P_PORT} \
--http-port=$BEACON_API_PORT \
--port=$P2P_PORT \
--metrics \
--metrics-address=0.0.0.0 \
--metrics-port=8008 \
--metrics-allow-origin=* \
--execution-endpoint=${ENGINE_URL} \
--execution-jwt=${JWT_FILE_PATH} $CHECKPOINT_SYNC_FLAG $MEVBOOST_FLAG $EXTRA_OPTS"
--execution-endpoint=$ENGINE_URL \
--execution-jwt=$JWT_FILE_PATH $CHECKPOINT_SYNC_FLAG $MEVBOOST_FLAG $EXTRA_OPTS"

echo "[INFO - entrypoint] Starting lighthouse beacon with flags: $FLAGS"

Expand Down
31 changes: 16 additions & 15 deletions validator/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,25 @@ else
echo "[WARN - entrypoint] Doppelganger protection is disabled"
fi

echo "[INFO - entrypoint] Starting validator service"

# shellcheck disable=SC2086
exec lighthouse \
--debug-level="${LOG_LEVEL}" \
--network="${NETWORK}" \
FLAGS="--debug-level=$LOG_LEVEL \
--network=$NETWORK \
validator \
--init-slashing-protection \
--datadir "${DATA_DIR}" \
--beacon-nodes "${BEACON_API_URL}" \
--graffiti="${VALID_GRAFFITI}" \
--datadir=$DATA_DIR \
--beacon-nodes=$BEACON_API_URL \
--graffiti=$VALID_GRAFFITI \
--http \
--http-address 0.0.0.0 \
--http-port "${VALIDATOR_PORT}" \
--http-allow-origin "*" \
--http-port=$VALIDATOR_PORT \
--http-allow-origin=* \
--unencrypted-http-transport \
--metrics \
--metrics-address 0.0.0.0 \
--metrics-port 8008 \
--metrics-allow-origin "*" \
--suggested-fee-recipient="${VALID_FEE_RECIPIENT}" ${MEVBOOST_FLAG} ${EXTRA_OPTS}
--metrics-address=0.0.0.0 \
--metrics-port=8008 \
--metrics-allow-origin=* \
--suggested-fee-recipient=$VALID_FEE_RECIPIENT ${MEVBOOST_FLAG} ${EXTRA_OPTS}"

echo "[INFO - entrypoint] Starting lighthouse validator with flags: $FLAGS"

# shellcheck disable=SC2086
exec lighthouse $FLAGS

0 comments on commit 4dc6229

Please sign in to comment.