192e6feee3
* Rename nitro-node stack * Add flag for setting public IP * Log values in the nitro-node script * Add command to install nitro-rpc-client * Fix directory name * Set default value for public IP
31 lines
936 B
Bash
Executable File
31 lines
936 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# TODO: Support running node on L2
|
|
if [ -n "$CERC_SCRIPT_DEBUG" ]; then
|
|
set -x
|
|
fi
|
|
|
|
if [ -z "$CERC_NA_ADDRESS" ]; then
|
|
echo "Error: NA_ADDRESS is not present"
|
|
exit 1
|
|
fi
|
|
|
|
if [ -z "$CERC_VPA_ADDRESS" ]; then
|
|
echo "Error: VPA_ADDRESS is not present"
|
|
exit 1
|
|
fi
|
|
|
|
if [ -z "$CERC_CA_ADDRESS" ]; then
|
|
echo "Error: CA_ADDRESS is not present"
|
|
exit 1
|
|
fi
|
|
|
|
echo "CERC_NITRO_CHAIN_URL: ${CERC_NITRO_CHAIN_URL}"
|
|
echo "CERC_NITRO_MSG_PORT: ${CERC_NITRO_MSG_PORT}"
|
|
echo "CERC_NITRO_RPC_PORT: ${CERC_NITRO_RPC_PORT}"
|
|
echo "CERC_NITRO_PK: ${CERC_NITRO_PK}"
|
|
echo "CERC_NITRO_CHAIN_PK: ${CERC_NITRO_CHAIN_PK}"
|
|
echo "CERC_PUBLIC_IP: ${CERC_PUBLIC_IP}"
|
|
|
|
./nitro -chainurl ${CERC_NITRO_CHAIN_URL} -msgport ${CERC_NITRO_MSG_PORT} -rpcport ${CERC_NITRO_RPC_PORT} -pk ${CERC_NITRO_PK} -chainpk ${CERC_NITRO_CHAIN_PK} -naaddress ${CERC_NA_ADDRESS} -vpaaddress ${CERC_VPA_ADDRESS} -caaddress ${CERC_CA_ADDRESS} -publicip ${CERC_PUBLIC_IP}
|