diff --git a/g1-stats.sh b/g1-stats.sh index 9ea1804..36e6e3d 100755 --- a/g1-stats.sh +++ b/g1-stats.sh @@ -21,9 +21,9 @@ indexhtml="$WEBPATH/index.html" echo -e "\n############# $day à $startTime #############\n" [[ -z $(which jq) || -z $(which bc) ]] && apt update && apt install jq bc echo "Initialisation ..." -TXBLOCKS=$(cat $SCRIPTPATH/db/txblocs) #kopa +#TXBLOCKS=$(cat $SCRIPTPATH/db/txblocs) #kopa TXBLOCKS=$(curl -s ${DUNITER}/blockchain/with/tx | jq '.result.blocks[]') -#TXBLOCKS=($(echo "$TXBLOCKS" | sort -hu | awk '{printf $1" "}')) +TXBLOCKS=($(echo "$TXBLOCKS" | sort -hu | awk '{printf $1" "}')) unset 'TXBLOCKS[${#TXBLOCKS[@]}-1]' membresPubkeys=$(curl -s ${DUNITER}/wot/members | jq -r '.results[].pubkey') #membresPubkeys=$(cat db/membresPubkeys) #kopa