|
|
@ -2,28 +2,28 @@ |
|
|
|
|
|
|
|
# UPDATE EXPLORER DATA |
|
|
|
|
|
|
|
NEWFILE=/var/www/explorer.hush.land/blocks/index.new.html |
|
|
|
INDEXFILE=/var/www/explorer.hush.land/blocks/index.html |
|
|
|
NEWFILE=/var/www/$DOMAIN/blocks/index.new.html |
|
|
|
INDEXFILE=/var/www/$DOMAIN/blocks/index.html |
|
|
|
|
|
|
|
# reads data from /var/www/explorer.hush.land/api |
|
|
|
/var/www/explorer.hush.land/bin/update_blocks_redis.pl > $NEWFILE |
|
|
|
# reads data from api |
|
|
|
/var/www/$DOMAIN/bin/blocks_update.pl > $NEWFILE |
|
|
|
if [ -s $NEWFILE ]; then |
|
|
|
cp $NEWFILE $INDEXFILE |
|
|
|
fi |
|
|
|
|
|
|
|
# UDPATE API |
|
|
|
|
|
|
|
~/hush3/src/hush-cli getinfo &> api/getinfo.json |
|
|
|
~/hush3/src/hush-cli getmininginfo &> api/getmininginfo.json |
|
|
|
~/hush3/src/hush-cli getblockchaininfo &> api/getblockchain.json |
|
|
|
~/hush3/src/hush-cli getchaintxstats &> api/getchaintxstats.json |
|
|
|
~/hush3/src/hush-cli gettxoutsetinfo &> api/gettxoutsetinfo.json |
|
|
|
~/hush3/src/hush-cli coinsupply &> api/coinsupply.json |
|
|
|
~/hush3/src/hush-cli getchaintips &> api/getchaintips.json |
|
|
|
~/hush3/src/hush-cli getchaintxstats &> api/getchaintxstats.json |
|
|
|
$CLI -ac_name=$ARRAKIS getinfo &> api/getinfo.json |
|
|
|
$CLI -ac_name=$ARRAKIS getmininginfo &> api/getmininginfo.json |
|
|
|
$CLI -ac_name=$ARRAKIS getblockchaininfo &> api/getblockchain.json |
|
|
|
$CLI -ac_name=$ARRAKIS getchaintxstats &> api/getchaintxstats.json |
|
|
|
$CLI -ac_name=$ARRAKIS gettxoutsetinfo &> api/gettxoutsetinfo.json |
|
|
|
$CLI -ac_name=$ARRAKIS coinsupply &> api/coinsupply.json |
|
|
|
$CLI -ac_name=$ARRAKIS getchaintips &> api/getchaintips.json |
|
|
|
$CLI -ac_name=$ARRAKIS getchaintxstats &> api/getchaintxstats.json |
|
|
|
|
|
|
|
# UPDATE INDEX.HTML |
|
|
|
|
|
|
|
perl bin/update.pl > index-1.html |
|
|
|
perl bin/home_update.pl > index-1.html |
|
|
|
|
|
|
|
cat index-1.html > index.html |
|
|
|
cat index-1.html > index.html |