From 6946a324bf426f75ab430102aaa2799a8a047e3a Mon Sep 17 00:00:00 2001 From: fred Date: Sat, 4 Sep 2021 22:25:29 +0200 Subject: [PATCH] WILL BE USING ipfs config Peering.Peers --- zen/gchange_IPFS_swarm.sh | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/zen/gchange_IPFS_swarm.sh b/zen/gchange_IPFS_swarm.sh index 4bb4b64..768fe46 100755 --- a/zen/gchange_IPFS_swarm.sh +++ b/zen/gchange_IPFS_swarm.sh @@ -72,8 +72,6 @@ do echo "__________________________________________" done -rm ~/.zen/A_peering_peers.txt - for peerline in $(cat /tmp/ipfstryme.* | sort | uniq); do echo "======================================================" @@ -119,15 +117,7 @@ do friend_of_mine_count=$((friend_of_mine_count+1)) echo "$peerline" >> ~/.zen/A_my_swarm.txt # ipfs bootstrap add "$peerline" - ## NOW WILL BE USING Peering.Peers config - Addr=$(echo "$peerline" | rev | cut -d '/' -f 2- | rev ) - ## Prepare # https://github.com/ipfs/go-ipfs/blob/master/docs/config.md#peering -[[ $starsin && $starsout ]] && echo '{ - "ID": "'$ipfsnodeid'", - "Addrs": ["'$Addr'"] -},' >> ~/.zen/A_peering_peers.txt -# jq '.Peering.Peers += [{"ID": "'$ipfsnodeid'", "Addrs": "["'$Addr'"]"}]' else echo "ALREADY RECORDED FRIEND" fi