Skip to content

Commit

Permalink
Build flags separately
Browse files Browse the repository at this point in the history
  • Loading branch information
dappnodedev committed Sep 20, 2024
1 parent fb14cee commit b32a496
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions beacon-chain/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,24 @@ 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}"

echo "[INFO - entrypoint] Starting beacon node..."

# shellcheck disable=SC2086
exec lighthouse \
--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-allow-origin=* \
--http-address=0.0.0.0 \
--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}
--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"

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

# shellcheck disable=SC2086
exec lighthouse $FLAGS

0 comments on commit b32a496

Please sign in to comment.