Enable REST and metrics in the ./run-mainnet-node.sh script

This commit is contained in:
Zahary Karadjov 2021-10-14 14:36:08 +03:00
parent ae9da0fe56
commit 6b3b82d549
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
1 changed files with 4 additions and 1 deletions

View File

@ -35,6 +35,7 @@ fi
: ${DATA_DIR:="build/data/${DATA_DIR_NAME}"} : ${DATA_DIR:="build/data/${DATA_DIR_NAME}"}
: ${BASE_P2P_PORT:=9000} : ${BASE_P2P_PORT:=9000}
: ${BASE_RPC_PORT:=9190} : ${BASE_RPC_PORT:=9190}
: ${BASE_REST_PORT:=5052}
# Windows detection # Windows detection
if uname | grep -qiE "mingw|msys"; then if uname | grep -qiE "mingw|msys"; then
@ -95,8 +96,10 @@ exec ${WINPTY} build/${NBC_BINARY} \
--log-file="${DATA_DIR}/nbc_bn_$(date +"%Y%m%d%H%M%S").log" \ --log-file="${DATA_DIR}/nbc_bn_$(date +"%Y%m%d%H%M%S").log" \
--tcp-port=$(( ${BASE_P2P_PORT} + ${NODE_ID} )) \ --tcp-port=$(( ${BASE_P2P_PORT} + ${NODE_ID} )) \
--udp-port=$(( ${BASE_P2P_PORT} + ${NODE_ID} )) \ --udp-port=$(( ${BASE_P2P_PORT} + ${NODE_ID} )) \
--rest \
--rest-port=$(( ${BASE_REST_PORT} + ${NODE_ID} )) \
--rpc \ --rpc \
--rpc-port=$(( ${BASE_RPC_PORT} +${NODE_ID} )) \ --rpc-port=$(( ${BASE_RPC_PORT} +${NODE_ID} )) \
--metrics \
${EXTRA_ARGS} \ ${EXTRA_ARGS} \
$@ $@