From df0bee625a0ea5f25524bc8b4296e5852759bacd Mon Sep 17 00:00:00 2001 From: fred Date: Sat, 25 Feb 2023 03:19:33 +0100 Subject: [PATCH] CLEAN LOST ACCOUNT --- ASTROBOT/PLAYER.refresh.sh | 3 +++ ping_bootstrap.sh | 9 --------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/ASTROBOT/PLAYER.refresh.sh b/ASTROBOT/PLAYER.refresh.sh index 2b17a1d1..9db8e6f7 100755 --- a/ASTROBOT/PLAYER.refresh.sh +++ b/ASTROBOT/PLAYER.refresh.sh @@ -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} diff --git a/ping_bootstrap.sh b/ping_bootstrap.sh index 68cf4072..6452f9bc 100755 --- a/ping_bootstrap.sh +++ b/ping_bootstrap.sh @@ -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"