Skip to content

Commit

Permalink
Added specific GRPC-web port to prevent conflict on 9091.
Browse files Browse the repository at this point in the history
  • Loading branch information
adizere committed May 11, 2021
1 parent 30688a4 commit abf6dba
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/one-chain
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit abf6dba

Please sign in to comment.