rationaliser robot blockchain

This commit is contained in:
2018-12-30 10:40:10 +01:00
parent b932e778c6
commit 37442a9506
6 changed files with 16 additions and 165 deletions

View File

@@ -11,19 +11,22 @@ touch $flag
cd $APPS_PATH/blockchain
rm -f $DATA_PATH/block_list.txt
rm -f $DATA_PATH/block_list.tmp
php cache.php >> $DATA_PATH/block_list.txt
LISTBLOCKS="GENESIS THE_ANSWER LUCIFER LEET \
TOPISTO PIZZA HALVING_1 WHALE201311 HALVING_2 \
BIP_91_LOCK BCC SEGWIT_LOCK SEGWIT \
HURRICANE_1 WHALE201810 BLOCK21E800 \
LAST"
LISTBLOCKS="LAST \
GENESIS THE_ANSWER LUCIFER LEET \
TOPISTO PIZZA HALVING_1 WHALE201311 \
HALVING_2 BIP_91_LOCK BCC SEGWIT_LOCK \
SEGWIT HURRICANE_1 WHALE201810 \
BLOCK21E800"
for BLOCK in $LISTBLOCKS
do
php robot.php $BLOCK >> $DATA_PATH/block_list.txt
php robot.php $BLOCK >> $DATA_PATH/block_list.tmp
done
# Sort the block list by Height
sort -k3 -n $DATA_PATH/block_list.tmp > $DATA_PATH/block_list.txt
rm -f $DATA_PATH/block_list.tmp
rm -f $flag