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