From a67815abbc53e3c0f8adad6de3fb6bc3205b7308 Mon Sep 17 00:00:00 2001 From: qo-op Date: Sun, 23 May 2021 01:00:51 +0200 Subject: [PATCH] takes care of friends first --- cron_MINUTE.sh | 4 ++-- zen/ipfs_SWARM_refresh.sh | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cron_MINUTE.sh b/cron_MINUTE.sh index 35bd0ef..b98f3bb 100755 --- a/cron_MINUTE.sh +++ b/cron_MINUTE.sh @@ -140,8 +140,8 @@ fi # ################################################################## # TODO: IDEA make gchange/ipfs/ipns refresh speed depending on ipfs swarm size and DEFCON level ! -# SYNC GCHANGE EVERY 2 hours +/- 3 minutes -[[ $(($runtime % 120)) == 0 ]] && $MY_PATH/zen/gchange_INIT.sh && $MY_PATH/zen/gchange_IPFS_swarm.sh & +# SYNC GCHANGE EVERY 1 hour runtime +[[ $(($runtime % 60)) == 0 ]] && $MY_PATH/zen/gchange_INIT.sh && $MY_PATH/zen/gchange_IPFS_swarm.sh & # QUICK SYNC SWARM EVERY 20 minutes +/- 1 minute # [[ $(($runtime % 20)) == 0 ]] && $MY_PATH/zen/ipfs_SWARM_refresh.sh "quick" & diff --git a/zen/ipfs_SWARM_refresh.sh b/zen/ipfs_SWARM_refresh.sh index 79ea3e6..95620c7 100755 --- a/zen/ipfs_SWARM_refresh.sh +++ b/zen/ipfs_SWARM_refresh.sh @@ -45,7 +45,8 @@ echo "RETRIEVING MY OWN DATA FROM IPNS TO ~/.zen/ipfs_swarm" ipfs get --output=/home/$YOU/.zen/ipfs_swarm/ /ipns/$IPFSNODEID ######################################################################## count=1 -ipfs swarm peers > /tmp/ipfs_swarm_peers +ipfs bootstrap > /tmp/ipfs_swarm_peers +ipfs swarm peers >> /tmp/ipfs_swarm_peers for ipfsnodeid in $( (cat /tmp/ipfs_swarm_peers | grep -o '[^/]*$' && cat /tmp/A_swarm | grep -o '[^/]*$' ) | sort | uniq); do ## $ipfsnodeid already Treated ?