CLEAN LOST ACCOUNT
This commit is contained in:
parent
45e7624417
commit
df0bee625a
|
@ -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}
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue