CLEAN LOST ACCOUNT

This commit is contained in:
fred 2023-02-25 03:19:33 +01:00
parent 45e7624417
commit df0bee625a
2 changed files with 3 additions and 9 deletions

View File

@ -23,6 +23,9 @@ echo "FOUND : ${PLAYERONE[@]}"
for PLAYER in ${PLAYERONE[@]}; do
[[ ! -d ~/.zen/game/players/$PLAYER ]] && echo "BAD $PLAYERONE" && continue
# CLEAN LOST ACCOUNT
[[ ! -f ~/.zen/game/players/$PLAYER/secret.dunikey ]] && rm -Rf ~/.zen/game/players/$PLAYER
MOATS=$(date -u +"%Y%m%d%H%M%S%4N")
[[ ! $(echo "$PLAYER" | grep '@') ]] && continue
mkdir -p ~/.zen/tmp/${MOATS}

View File

@ -10,15 +10,6 @@ for bootnode in $(cat ~/.zen/Astroport.ONE/A_boostrap_nodes.txt | grep -Ev "#");
done
## And friends
for friendnode in $(cat ~/.zen/game/players/*/FRIENDS/*/.astronautens | uniq);
do
ipfs ping -n 3 $friendnode
[ $? = 0 ] && ipfs swarm connect $friendnode \
|| echo "UNCONNECTED $friendnode"
ipfs swarm peers | grep $friendnode
done
ipfs stats dht wan
echo "TODO : search for bootstrap and friends better connectivity"