default duniter

This commit is contained in:
qo-op 2020-05-10 04:02:03 +02:00
parent 29f8b2417d
commit 69e947b185
2 changed files with 3 additions and 2 deletions

View File

@ -112,7 +112,7 @@ export LC_ALL=C.UTF-8 #attipix
export LANG=C.UTF-8 #attipix
DUNITERNODE=$($MY_PATH/tools/duniter_getnode.sh)
g1balance=$(silkaj -p $DUNITERNODE balance $g1pub 2>&1)
[[ $DUNITERNODE ]] && g1balance=$(silkaj -p $DUNITERNODE balance $g1pub 2>&1) || g1balance=$(silkaj balance $g1pub 2>&1)
# SSB PUBLISH G1 wallet silkaj balance # TODO crash bad text format
[[ $g1balance ]] && sbotc publish '{"type":"post","text":"'"$g1balance"'"}'

View File

@ -104,4 +104,5 @@ done
longchain=$(ls -S $DIR/chains/ | head -n 1)
cp $DIR/chains/$longchain $DIR/good.nodes.txt
# WRITE OUT shuffle Duniter Node Sync with longest chain
echo $(shuf -n 1 $DIR/good.nodes.txt)
result=$(shuf -n 1 $DIR/good.nodes.txt)
[[ ! $result ]] && echo "duniter-g1.p2p.legal:443" || echo $result