From 28ec70a7b203d863af2d08e2a552229445772a6c Mon Sep 17 00:00:00 2001 From: 0xOzgur <29779769+0xOzgur@users.noreply.github.com> Date: Sun, 2 Jun 2024 04:50:21 +0300 Subject: [PATCH] final --- visibility_check.sh | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) 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