From 6ac67826ab2cd36d6eab44ae7524b00ca2184257 Mon Sep 17 00:00:00 2001 From: fred Date: Sat, 4 Sep 2021 00:33:23 +0200 Subject: [PATCH] stars --- zen/tools/autoPINfriends.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/zen/tools/autoPINfriends.sh b/zen/tools/autoPINfriends.sh index b65f1dc..b644d52 100755 --- a/zen/tools/autoPINfriends.sh +++ b/zen/tools/autoPINfriends.sh @@ -32,6 +32,13 @@ do g1source=$(echo "$astrofile" | cut -d '/' -f 9 ) ipfsnodesource=$(~/.zen/astrXbian/zen/tools/g1_to_ipfs.py $g1source) +# CHECK FRIENDSHIP LEVELS + starsin=$(ipfs --timeout=10s cat /ipns/$ipfsnodesource/.$ipfsnodesource/FRIENDS/$G1PUB/stars.level) + starsout=$(ipfs --timeout=10s cat /ipns/$IPFSNODEID/.$IPFSNODEID/FRIENDS/$g1source/stars.level) + + ## PIN COULD BE ONLY ALLOWED FROM SOME LEVEL FRIENDS ONLY + echo "RX $starsin / TX $starsout (stars)" + echo "$mediakey PINNING ASKED BY $g1source" ## DECRYPT FINAL IPFS LINKS... $MY_PATH/natools.py decrypt -f pubsec -k "$HOME/.zen/secret.dunikey" -i "$astrofile" -o "/tmp/ipfslink.txt"