Skip to content

Commit

Permalink
Echo flags
Browse files Browse the repository at this point in the history
  • Loading branch information
dappnodedev committed Sep 24, 2024
1 parent dacef6f commit db61fae
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 32 deletions.
33 changes: 17 additions & 16 deletions beacon-chain/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,22 +61,23 @@ else
CHECKPOINT_SYNC_FLAGS="${checkpoint_flag_1} ${checkpoint_flag_2}"
fi

echo "[INFO - entrypoint] Running beacon service"

# shellcheck disable=SC2086
exec /beacon-chain \
--accept-terms-of-use \
--datadir=${DATA_DIR} \
--jwt-secret="${JWT_FILE_PATH}" \
--execution-endpoint="${ENGINE_URL}" \
FLAGS="--accept-terms-of-use \
--datadir=$DATA_DIR \
--jwt-secret=$JWT_FILE_PATH \
--execution-endpoint=$ENGINE_URL \
--monitoring-host=0.0.0.0 \
--grpc-gateway-host=0.0.0.0 \
--grpc-gateway-port="${BEACON_API_PORT}" \
--grpc-gateway-corsdomain="${CORSDOMAIN}" \
--grpc-gateway-port=$BEACON_API_PORT \
--grpc-gateway-corsdomain=$CORSDOMAIN \
--rpc-host=0.0.0.0 \
--verbosity="${VERBOSITY}" \
--p2p-tcp-port="${P2P_TCP_PORT}" \
--p2p-udp-port="${P2P_UDP_PORT}" \
--p2p-max-peers="${MAX_PEERS}" \
--min-sync-peers="${MIN_SYNC_PEERS}" \
--subscribe-all-subnets="${SUBSCRIBE_ALL_SUBNETS}" ${NETWORK_FLAGS} ${CHECKPOINT_SYNC_FLAGS} ${MEVBOOST_FLAG} ${EXTRA_OPTS}
--verbosity=$VERBOSITY \
--p2p-tcp-port=$P2P_TCP_PORT \
--p2p-udp-port=$P2P_UDP_PORT \
--p2p-max-peers=$MAX_PEERS \
--min-sync-peers=$MIN_SYNC_PEERS \
--subscribe-all-subnets=$SUBSCRIBE_ALL_SUBNETS $NETWORK_FLAGS $CHECKPOINT_SYNC_FLAGS $MEVBOOST_FLAG $EXTRA_OPTS"

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

# shellcheck disable=SC2086
exec /beacon-chain $FLAGS
33 changes: 17 additions & 16 deletions validator/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,23 @@ case "$NETWORK" in
;;
esac

echo "[INFO - entrypoint] Running validator service"

# shellcheck disable=SC2086
exec /validator \
--datadir="${DATA_DIR}" \
--wallet-dir="${WALLET_DIR}" \
--monitoring-host 0.0.0.0 \
--beacon-rpc-provider="${BEACON_RPC_PROVIDER}" \
--beacon-rpc-gateway-provider="${BEACON_RPC_GATEWAY_PROVIDER}" \
--validators-external-signer-url="${SIGNER_API_URL}" \
FLAGS="--datadir=$DATA_DIR \
--wallet-dir=$WALLET_DIR \
--monitoring-host=0.0.0.0 \
--beacon-rpc-provider=$BEACON_RPC_PROVIDER \
--beacon-rpc-gateway-provider=$BEACON_RPC_GATEWAY_PROVIDER \
--validators-external-signer-url=$SIGNER_API_URL \
--grpc-gateway-host=0.0.0.0 \
--grpc-gateway-port="${VALIDATOR_API_PORT}" \
--grpc-gateway-corsdomain=http://0.0.0.0:"${VALIDATOR_API_PORT}" \
--graffiti="${VALID_GRAFFITI}" \
--suggested-fee-recipient="${VALID_FEE_RECIPIENT}" \
--verbosity="${VERBOSITY}" \
--grpc-gateway-port=$VALIDATOR_API_PORT \
--grpc-gateway-corsdomain=http://0.0.0.0:$VALIDATOR_API_PORT \
--graffiti=$VALID_GRAFFITI \
--suggested-fee-recipient=$VALID_FEE_RECIPIENT \
--verbosity=$VERBOSITY \
--web \
--accept-terms-of-use \
--enable-doppelganger ${NETWORK_FLAGS} ${MEVBOOST_FLAG} ${EXTRA_OPTS}
--enable-doppelganger ${NETWORK_FLAGS} ${MEVBOOST_FLAG} ${EXTRA_OPTS}"

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

# shellcheck disable=SC2086
exec /validator $FLAGS

0 comments on commit db61fae

Please sign in to comment.