Enable REST and metrics in the ./run-mainnet-node.sh script
This commit is contained in:
parent
ae9da0fe56
commit
6b3b82d549
|
@ -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} \
|
||||||
$@
|
$@
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue