ping bootstrap

This commit is contained in:
fred 2022-11-13 04:09:03 +01:00
parent 632f5474bf
commit ae5e4421dd
1 changed files with 8 additions and 0 deletions

8
ping_bootstrap.sh Executable file
View File

@ -0,0 +1,8 @@
for bootnode in $(cat ~/.zen/Astroport.ONE/A_boostrap_nodes.txt | grep -Ev "#");
do
ipfsnodeid=${bootnode##*/}
ipfs ping -n 3 $bootnode
[ $? = 0 ] && ipfs swarm connect $bootnode \
|| echo "BAD NODE $bootnode"
done