${MY_PATH}/ping_bootstrap.sh

This commit is contained in:
fred 2024-02-21 13:59:28 +01:00
parent 17dca2cafc
commit 93ac6daa8e
2 changed files with 3 additions and 2 deletions

View File

@ -81,6 +81,7 @@ while true; do
## FIXING TIC TAC FOR NODE & SWARM REFRESH ( 1H ) ## FIXING TIC TAC FOR NODE & SWARM REFRESH ( 1H )
if [[ ${duree} -gt 3600000 ]]; then if [[ ${duree} -gt 3600000 ]]; then
${MY_PATH}/ping_bootstrap.sh
#### UPLANET FLASHMEM UPDATES #### UPLANET FLASHMEM UPDATES
${MY_PATH}/UPlanetKEYS_refresh.sh & ${MY_PATH}/UPlanetKEYS_refresh.sh &

View File

@ -15,7 +15,7 @@ for bootnode in $(cat ~/.zen/Astroport.ONE/A_boostrap_nodes.txt | grep -Ev "#" |
do do
ipfsnodeid=${bootnode##*/} ipfsnodeid=${bootnode##*/}
ipfs swarm peers | grep $bootnode ipfs swarm peers | grep $bootnode
ipfs --timeout 15s ping -n 3 $bootnode ipfs --timeout 5s ping -n 3 $bootnode
[ $? = 0 ] && ipfs swarm connect $bootnode \ [ $? = 0 ] && ipfs swarm connect $bootnode \
|| echo "FAILED ipfs ping $bootnode" || echo "FAILED ipfs ping $bootnode"
echo "*****" echo "*****"
@ -33,7 +33,7 @@ ls ~/.zen/tmp/swarm
echo "-------------------------------------------------" echo "-------------------------------------------------"
for ipfsnodeid in $(ls ~/.zen/tmp/swarm); for ipfsnodeid in $(ls ~/.zen/tmp/swarm);
do do
ipfs --timeout 15s ping -n 3 /p2p/$ipfsnodeid ipfs --timeout 5s ping -n 3 /p2p/$ipfsnodeid
[ $? = 0 ] && ipfs swarm connect /p2p/$ipfsnodeid \ [ $? = 0 ] && ipfs swarm connect /p2p/$ipfsnodeid \
|| echo "FAILED ipfs ping /p2p/$ipfsnodeid" || echo "FAILED ipfs ping /p2p/$ipfsnodeid"
echo "in DHT ? --------------" echo "in DHT ? --------------"