ipfs ping & (re)connect boostraps

This commit is contained in:
fred 2023-11-09 01:52:47 +01:00
parent 521c7d5469
commit 8ba27150bd
2 changed files with 6 additions and 6 deletions

View File

@ -266,7 +266,7 @@ for PLAYER in ${PLAYERONE[@]}; do
echo "(☉_☉ ) (☉_☉ ) (☉_☉ ) RSS"
## CREATING 30 DAYS RSS STREAM
tiddlywiki --load ~/.zen/tmp/${IPFSNODEID}/TW/${PLAYER}/index.html \
--output ~/.zen/game/players/${PLAYER}/ipfs --render '.' "${PLAYER}.rss.json" 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' '[days:created[-30]!is[system]]'
--output ~/.zen/game/players/${PLAYER}/ipfs --render '.' "${PLAYER}.rss.json" 'text/plain' '$:/core/templates/exporters/JsonFile' 'exportFilter' '[days:created[-30]!is[system]!tag[G1Voeu]]'
[[ ! -s ~/.zen/game/players/${PLAYER}/ipfs/${PLAYER}.rss.json ]] && echo "NO ${PLAYER} RSS - BAD ~/.zen/game/players/${PLAYER}/ipfs/${PLAYER}.rss.json -"
## CHECK FOR EMPTY RSS + 30 DAYS BIRTHDATE

View File

@ -1,8 +1,9 @@
#!/bin/bash
ipfs stats dht wan
ipfs stats dht wan > ~/.zen/tmp/ipfs.stats.dht.wan
cat ~/.zen/tmp/ipfs.stats.dht.wan
for bootnode in $(cat ~/.zen/Astroport.ONE/A_boostrap_nodes.txt | grep -Ev "#" | rev | cut -d '/' -f 1 | rev | grep -v '^[[:space:]]*$')
for bootnode in $(cat ~/.zen/Astroport.ONE/A_boostrap_nodes.txt | grep -Ev "#" | grep -v '^[[:space:]]*$')
do
echo
ipfsnodeid=${bootnode##*/}
@ -12,8 +13,7 @@ for bootnode in $(cat ~/.zen/Astroport.ONE/A_boostrap_nodes.txt | grep -Ev "#" |
|| echo "BAD NODE $bootnode"
echo "*****"
cat ~/.zen/tmp/ipfs.stats.dht.wan | grep $ipfsnodeid
done
echo "TODO : search for bootstrap and friends better connectivity"