Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve validator flags #9

Merged
merged 1 commit into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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