Réduire la durée du TWEET et ajouter le nbre de transactions dans le fichier block_liste.txt

This commit is contained in:
2018-09-25 20:43:18 +02:00
parent 4314f96d01
commit ebf5b0d648
4 changed files with 8 additions and 3 deletions

View File

@@ -38,7 +38,7 @@ while(($max > 0)&&($max2 > 0))
if (!file_exists(DATA_PATH.'/json/'.$block_hash.'.zip')) if (!file_exists(DATA_PATH.'/json/'.$block_hash.'.zip'))
{ {
$max--; $max--;
echo 'CACHE '.$block_hash.' '.($the_block->height-1).PHP_EOL; echo 'CACHE '.$block_hash.' '.($the_block->height-1)." ".$the_block->n_tx.PHP_EOL;
} }
$the_block = blockchain::getBlockWithHash($block_hash); $the_block = blockchain::getBlockWithHash($block_hash);

View File

@@ -47,6 +47,6 @@ if ($block_hash == 'LAST')
} }
} }
echo $the_block->hash." ".$the_block->height.PHP_EOL; echo $the_block->hash." ".$the_block->height." ".$the_block->n_tx.PHP_EOL;
?> ?>

View File

@@ -100,6 +100,11 @@ then
if [ "$BNAME" != "LAST" ] if [ "$BNAME" != "LAST" ]
then then
touch -t $DATE $DATA_PATH/$ROBOT/$BLOCK.png touch -t $DATE $DATA_PATH/$ROBOT/$BLOCK.png
if [ -f $DATA_PATH/spline/$BLOCK.png ]
then
rm -f $DATA_PATH/hasard/$BLOCK.png
ln $DATA_PATH/spline/$BLOCK.png $DATA_PATH/hasard/$BLOCK.png
fi
fi fi
# #

View File

@@ -56,7 +56,7 @@ fi
# #
# TWEET # TWEET
# #
TWEET=3 TWEET=30
if [ $((MINUTE % $TWEET)) -eq 0 ] if [ $((MINUTE % $TWEET)) -eq 0 ]
then then
debug "send a TWEET" debug "send a TWEET"