forked from onryo/siona
onryo
2 months ago
1 changed files with 29 additions and 0 deletions
@ -0,0 +1,29 @@ |
|||
#!/usr/bin/env bash |
|||
|
|||
# UPDATE EXPLORER DATA |
|||
|
|||
NEWFILE=/var/www/explorer.hush.land/blocks/index.new.html |
|||
INDEXFILE=/var/www/explorer.hush.land/blocks/index.html |
|||
|
|||
# reads data from /var/www/explorer.hush.land/api |
|||
/var/www/explorer.hush.land/bin/update_blocks_redis.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 |
|||
|
|||
# UPDATE INDEX.HTML |
|||
|
|||
perl bin/update.pl > index-1.html |
|||
|
|||
cat index-1.html > index.html |
Loading…
Reference in new issue