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.
 
 
 

29 lines
432 B

#!/bin/bash
RUNDIR=/tmp/btcspy
if [ -d /opt/TOPISTO/data/btcspy ];
then
        RUNDIR=/opt/TOPISTO/data/btcspy
fi
if [ ! -d $RUNDIR/data/simpledb ];
then
        mkdir -p $RUNDIR/data/simpledb/blocks
fi
if [ ! -d $RUNDIR/tmp ];
then
        mkdir -p $RUNDIR/tmp
fi
/tmp/btcspy/bin/btcspy $RUNDIR
while true
do
        sleep 60
        if [ ! -f $RUNDIR/tmp/daemond.lock ];
        then
                exit 0
        fi
done