You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
304 B

  1. #! /bin/bash
  2. set -eu
  3. N=$1
  4. DOCKER_IMAGE=$2
  5. cd "$GOPATH/src/github.com/tendermint/tendermint"
  6. persistent_peers="$(test/p2p/ip_plus_id.sh 1 $DOCKER_IMAGE):26656"
  7. for i in $(seq 2 $N); do
  8. persistent_peers="$persistent_peers,$(test/p2p/ip_plus_id.sh $i $DOCKER_IMAGE):26656"
  9. done
  10. echo "$persistent_peers"