tendermint/test/p2p/seeds.sh

13 lines
200 B
Bash
Raw Normal View History

2017-03-05 20:12:27 -08:00
#! /bin/bash
set -eu
N=$1
2017-03-06 00:08:04 -08:00
cd "$GOPATH/src/github.com/tendermint/tendermint"
2017-03-05 20:12:27 -08:00
seeds="$(test/p2p/ip.sh 1):46656"
2017-03-06 00:08:04 -08:00
for i in $(seq 2 $N); do
2017-03-05 20:12:27 -08:00
seeds="$seeds,$(test/p2p/ip.sh $i):46656"
done
2017-03-06 00:08:04 -08:00
echo "$seeds"