a tool to observe btc blokcchain
Du kannst nicht mehr als 25 Themen auswählen
Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
|
|
#!/bin/bash
|
|
|
if [ -d /opt/TOPISTO/data/btcspy ];
|
|
|
then
|
|
|
find /opt/TOPISTO/data/btcspy/data/simpledb/blocks -type f -mtime +3 -exec rm {} \;
|
|
|
find /opt/TOPISTO/data/btcspy/data/json -type f -mtime +3 -exec rm {} \;
|
|
|
|
|
|
|
|
|
for BLOCK in `ls -tr /opt/TOPISTO/data/btcspy/data/simpledb/blocks`
|
|
|
do
|
|
|
if [ ! -f /opt/TOPISTO/data/btcspy/data/json/$BLOCK.json ];
|
|
|
then
|
|
|
/tmp/btcspy/bin/block2json $BLOCK > /opt/TOPISTO/data/btcspy/data/json/$BLOCK.json
|
|
|
fi
|
|
|
done
|
|
|
fi
|