diff --git a/visibility_check.sh b/visibility_check.sh index 70d8fc5..8cee73e 100644 --- a/visibility_check.sh +++ b/visibility_check.sh @@ -16,21 +16,13 @@ bootstrap_peers=( output=$(grpcurl -plaintext localhost:8337 quilibrium.node.node.pb.NodeService.GetNetworkInfo) # Check if any of the specific peers are in the output -# for peer in "${bootstrap_peers[@]}"; do -# if [[ $output == *"$peer"* ]]; then -# echo "You see $peer as a bootstrap peer" -# else -# echo "Peer $peer not found" -# fi -# done - - -# Check if any of the bootstrap peers are in the output visible=false for peer in "${bootstrap_peers[@]}"; do if [[ $output == *"$peer"* ]]; then visible=true - break + echo "You see $peer as a bootstrap peer" + else + echo "Peer $peer not found" fi done