a tool to observe btc blokcchain
25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#!/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 /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
|