github.com/pokt-network/tendermint@v0.32.11-0.20230426215212-59310158d3e9/test/p2p/pex/check_peer.sh (about) 1 #! /bin/bash 2 set -u 3 4 IPV=$1 5 ID=$2 6 N=$3 7 8 addr=$(test/p2p/address.sh $IPV "$ID" 26657) 9 10 echo "2. wait until peer $ID connects to other nodes using pex reactor" 11 peers_count="0" 12 while [[ "$peers_count" -lt "$((N-1))" ]]; do 13 sleep 1 14 peers_count=$(curl -s "$addr/net_info" | jq ".result.peers | length") 15 echo "... peers count = $peers_count, expected = $((N-1))" 16 done 17 18 echo "... successful"