From abf6dba19f8eb5fcc370fcb33edc9bf5a1c4c21a Mon Sep 17 00:00:00 2001 From: Adi Seredinschi Date: Tue, 11 May 2021 11:41:01 +0200 Subject: [PATCH] Added specific GRPC-web port to prevent conflict on 9091. --- scripts/one-chain | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/one-chain b/scripts/one-chain index af5ffe365c..072381c62f 100755 --- a/scripts/one-chain +++ b/scripts/one-chain @@ -58,6 +58,8 @@ PROF_PORT=$6 GRPC_PORT=$7 SAMOLEANS=$8 +GRPC_WEB_PORT=$((GRPC_PORT + 100)) + echo "Creating $BINARY instance: home=$CHAIN_DIR | chain-id=$CHAIN_ID | p2p=:$P2P_PORT | rpc=:$RPC_PORT | profiling=:$PROF_PORT | grpc=:$GRPC_PORT | samoleans=:$SAMOLEANS" # Add dir for chain, exit if error @@ -128,8 +130,8 @@ else fi # Start gaia -echo "Start gaia on grpc port: $GRPC_PORT..." -$BINARY --home $CHAIN_DIR/$CHAIN_ID start --pruning=nothing --grpc.address="0.0.0.0:$GRPC_PORT" --log_level error > $CHAIN_DIR/$CHAIN_ID.log 2>&1 & +echo "Start gaia on grpc port: $GRPC_PORT & grpc-web port: $GRPC_WEB_PORT..." +$BINARY --home $CHAIN_DIR/$CHAIN_ID start --grpc-web.address "0.0.0.0:$GRPC_WEB_PORT" --pruning=nothing --grpc.address="0.0.0.0:$GRPC_PORT" --log_level error > $CHAIN_DIR/$CHAIN_ID.log 2>&1 & # Show validator's and user's balance sleep 3