for dumies

This commit is contained in:
0xOzgur 2024-06-02 04:42:08 +03:00
parent eef854aec6
commit 8765312b88

View File

@ -16,10 +16,26 @@ 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
echo "You see $peer as a bootstrap peer"
else
echo "Peer $peer not found"
visible=true
break
fi
done
done
if $visible ; then
echo "Great, your node is visible!"
else
echo "Sorry, your node is not visible. Please restart your node and try again."
fi