CLEAN ipfs_swarm
This commit is contained in:
parent
e610cd2051
commit
a6c8922545
|
@ -39,6 +39,9 @@ NODEIPNS=$(ipfs name publish --quieter /ipfs/$IWALLETS)
|
|||
ipfs get --output=/home/$YOU/.zen/ipfs_swarm/ /ipns/$IPFSNODEID
|
||||
|
||||
echo "REFRESHING /home/$YOU/.zen/ipfs_swarm/ from my SWARM peers"
|
||||
rm -Rf /home/$YOU/.zen/ipfs_swarm/.Qm*
|
||||
rm -Rf /home/$YOU/.zen/ipfs_swarm/*
|
||||
|
||||
count=1
|
||||
# Search for All peers Nodes. ## TODO: To be changed when Swarm is too big or not expanding
|
||||
#for id in $(ls -d ~/.zen/ipfs_swarm/.Qm* | cut -d '.' -f 3); # Alternative search...
|
||||
|
@ -68,7 +71,6 @@ do
|
|||
continue
|
||||
fi
|
||||
|
||||
rm -Rf /home/$YOU/.zen/ipfs_swarm/.$id
|
||||
$MY_PATH/tools/timeout.sh -t 30 ipfs get --output=/home/$YOU/.zen/ipfs_swarm/ /ipns/$id
|
||||
|
||||
#### IPFS SWARM SHAPING CONTROL
|
||||
|
|
|
@ -159,6 +159,7 @@ fi
|
|||
export LC_ALL=C.UTF-8 #attipix
|
||||
export LANG=C.UTF-8 #attipix
|
||||
DUNITERNODE=$($MY_PATH/tools/duniter_getnode.sh)
|
||||
echo "DEBUG: silkaj -p $DUNITERNODE balance $G1PUB"
|
||||
[[ $DUNITERNODE ]] && g1balance=$(silkaj -p $DUNITERNODE balance $G1PUB 2>&1) || g1balance=$(silkaj balance $G1PUB 2>&1)
|
||||
silkajQuantitativeAmountPattern='Total\sQuantitative\s+=\s+(.*)\s+Ğ1'
|
||||
if [[ $g1balance =~ $silkajQuantitativeAmountPattern ]]
|
||||
|
|
Loading…
Reference in New Issue