diff --git a/g1-stats.sh b/g1-stats.sh index 756f402..e6287f0 100755 --- a/g1-stats.sh +++ b/g1-stats.sh @@ -22,8 +22,8 @@ indexhtml="$WEBPATH/index.html" echo -e "\n############# $day à $startTime #############\n" [[ -z $(which jq) || -z $(which bc) || -z $(which curl) ]] && sudo apt update && sudo apt install jq bc curl echo "Initialisation ..." -TXBLOCKS=$(cat $SCRIPTPATH/db/txblocs) #kopa -#TXBLOCKS=$(curl -s ${DUNITER}/blockchain/with/tx | jq '.result.blocks[]') +#TXBLOCKS=$(cat $SCRIPTPATH/db/txblocs) #kopa +TXBLOCKS=$(curl -s ${DUNITER}/blockchain/with/tx | jq '.result.blocks[]') TXBLOCKS=($(echo "$TXBLOCKS" | sort -hu | awk '{printf $1" "}')) unset 'TXBLOCKS[${#TXBLOCKS[@]}-1]' echo "TXBLOCKS OK" @@ -42,7 +42,7 @@ source $SCRIPTPATH/lib/functions.sh source $SCRIPTPATH/lib/scanTxWallets.sh ### Extraction des adresses Ḡ1 actives -scanTxWallets #kopa +scanTxWallets ### Calcul la somme des soldes portefeuilles et membres sumSoldes