diff --git a/run_node.sh b/run_node.sh index 2a776b5..3dbd525 100755 --- a/run_node.sh +++ b/run_node.sh @@ -2,16 +2,16 @@ echo "I am a nwaku node" -if [ -n "${ETH_CLIENT_ADDRESS}" ] ; then - echo "ETH_CLIENT_ADDRESS variable was renamed to RLN_RELAY_ETH_CLIENT_ADDRESS" - echo "Please update your .env file" - exit 1 -fi +# if [ -n "${ETH_CLIENT_ADDRESS}" ] ; then +# echo "ETH_CLIENT_ADDRESS variable was renamed to RLN_RELAY_ETH_CLIENT_ADDRESS" +# echo "Please update your .env file" +# exit 1 +# fi -if [ -z "${RLN_RELAY_ETH_CLIENT_ADDRESS}" ]; then - echo "Missing Eth client address, please refer to README.md for detailed instructions" - exit 1 -fi +# if [ -z "${RLN_RELAY_ETH_CLIENT_ADDRESS}" ]; then +# echo "Missing Eth client address, please refer to README.md for detailed instructions" +# exit 1 +# fi MY_EXT_IP=$(wget -qO- https://api4.ipify.org) DNS_WSS_CMD= @@ -106,7 +106,10 @@ exec /usr/bin/wakunode\ --lightpush=true\ --keep-alive=true\ --max-connections=150\ - --cluster-id=1\ + --cluster-id=42\ + --num-shards-in-network=1\ + --shard=0\ + --peer-exchange=true\ --discv5-discovery=true\ --discv5-udp-port=9005\ --discv5-enr-auto-update=True\ @@ -124,10 +127,6 @@ exec /usr/bin/wakunode\ --nat=extip:"${MY_EXT_IP}"\ --store=true\ --store-message-db-url="postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/postgres"\ - --rln-relay-eth-client-address="${RLN_RELAY_ETH_CLIENT_ADDRESS}"\ - --rln-relay-tree-path="/etc/rln_tree"\ - "${RLN_RELAY_CRED_PATH}"\ - "${RLN_RELAY_CRED_PASSWORD}"\ ${DNS_WSS_CMD}\ ${NODEKEY}\ ${STORE_RETENTION_POLICY}\