Réduire la durée du TWEET et ajouter le nbre de transactions dans le fichier block_liste.txt
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user