2023-07-25 16:16:19 +00:00
|
|
|
#!/bin/bash
|
2023-08-29 16:32:37 +00:00
|
|
|
if [[ "true" == "$CERC_SCRIPT_DEBUG" ]]; then
|
2023-07-25 16:16:19 +00:00
|
|
|
set -x
|
|
|
|
fi
|
|
|
|
|
2023-08-29 16:32:37 +00:00
|
|
|
ENR_OPTS=""
|
|
|
|
if [[ -n "$LIGHTHOUSE_ENR_ADDRESS" ]]; then
|
|
|
|
ENR_OPTS="--enr-address $LIGHTHOUSE_ENR_ADDRESS"
|
|
|
|
fi
|
2023-07-25 16:16:19 +00:00
|
|
|
|
2023-08-29 16:32:37 +00:00
|
|
|
exec lighthouse bn \
|
|
|
|
--checkpoint-sync-url "$LIGHTHOUSE_CHECKPOINT_SYNC_URL" \
|
|
|
|
--checkpoint-sync-url-timeout ${LIGHTHOUSE_CHECKPOINT_SYNC_URL_TIMEOUT} \
|
|
|
|
--datadir "$LIGHTHOUSE_DATADIR" \
|
|
|
|
--debug-level $LIGHTHOUSE_DEBUG_LEVEL \
|
2023-07-25 16:16:19 +00:00
|
|
|
--disable-deposit-contract-sync \
|
2023-08-29 16:32:37 +00:00
|
|
|
--disable-upnp \
|
|
|
|
--enr-tcp-port $LIGHTHOUSE_NETWORK_PORT \
|
|
|
|
--enr-udp-port $LIGHTHOUSE_NETWORK_PORT \
|
|
|
|
--execution-endpoint "$LIGHTHOUSE_EXECUTION_ENDPOINT" \
|
|
|
|
--execution-jwt /etc/mainnet-eth/jwtsecret \
|
|
|
|
--http \
|
|
|
|
--http-address 0.0.0.0 \
|
|
|
|
--http-port $LIGHTHOUSE_HTTP_PORT \
|
|
|
|
--metrics \
|
|
|
|
--metrics-address=0.0.0.0 \
|
|
|
|
--metrics-port $LIGHTHOUSE_METRICS_PORT \
|
|
|
|
--network mainnet \
|
|
|
|
--port $LIGHTHOUSE_NETWORK_PORT \
|
|
|
|
$ENR_OPTS $LIGHTHOUSE_OPTS
|