avoid Qm nodes G1pub key convert

This commit is contained in:
qo-op 2021-05-20 15:25:39 +02:00
parent cd35c761a7
commit cd691c12a2
1 changed files with 2 additions and 1 deletions

View File

@ -102,7 +102,8 @@ fi
# GET LIST of issuer(s) who likes me & A_boostrap_nodes.txt
IamINBOOTSTRAP=$(cat ~/.zen/astrXbian/A_boostrap_nodes.txt | grep "$IPFSNODEID") # AM I A BOOTSTRAP ?
ipfsnodeid=${IamINBOOTSTRAP##*/}
IamBOOTSTRAP=$(~/.zen/astrXbian/zen/tools/ipfs_to_g1.py $ipfsnodeid) # Contains G1PUB
## FILTER Qm !
[[ ! "${ipfsnodeid:0:2}" == "Qm" ]] && IamBOOTSTRAP=$(~/.zen/astrXbian/zen/tools/ipfs_to_g1.py $ipfsnodeid) || IamBOOTSTRAP="" # Contains G1PUB
################## AUTO PINNING for BOOTSTRAP
[[ $IamBOOTSTRAP ]] && ~/.zen/astrXbian/zen/tools/autoPINfriends.sh