|
|
@ -6,6 +6,7 @@ CLI=${SIONA_CLI} |
|
|
|
# this is optional and not used yet here |
|
|
|
ACNAME=${SIONA_ACNAME} |
|
|
|
DIR=/var/www/$DOMAIN/api |
|
|
|
HIGHESTBLOCK=$(curl -s "$DIR/api/getblockchain.json" | jq -r '.blocks') |
|
|
|
|
|
|
|
# TODO: remove IP info from getpeerinfo |
|
|
|
#$CLI getpeerinfo > $DIR/getpeerinfo.json |
|
|
@ -16,4 +17,5 @@ $CLI -ac_name=$ACNAME getchaintxstats &> $DIR/getchaintxstats.json |
|
|
|
$CLI -ac_name=$ACNAME gettxoutsetinfo &> $DIR/gettxoutsetinfo.json |
|
|
|
$CLI -ac_name=$ACNAME coinsupply &> $DIR/coinsupply.json |
|
|
|
$CLI -ac_name=$ACNAME getchaintips &> $DIR/getchaintips.json |
|
|
|
$CLI -ac_name=$ACNAME getchaintxstats &> $DIR/getchaintxstats.json |
|
|
|
$CLI -ac_name=$ACNAME getchaintxstats &> $DIR/getchaintxstats.json |
|
|
|
redis-cli set anonset $($CLI -ac_name=$ACNAME z_anonsetblockdelta 1 $HIGHESTBLOCK) |
|
|
|