Przeglądaj źródła

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

master
MEUNIER Thibaud 7 lat temu
rodzic
commit
ebf5b0d648
4 zmienionych plików z 8 dodań i 3 usunięć
  1. +1
    -1
      blockchain/cache.php
  2. +1
    -1
      blockchain/robot.php
  3. +5
    -0
      scripts/blocks.sh
  4. +1
    -1
      scripts/tweet.sh

+ 1
- 1
blockchain/cache.php Wyświetl plik

@ -38,7 +38,7 @@ while(($max > 0)&&($max2 > 0))
if (!file_exists(DATA_PATH.'/json/'.$block_hash.'.zip'))
{
$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);

+ 1
- 1
blockchain/robot.php Wyświetl plik

@ -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;
?>

+ 5
- 0
scripts/blocks.sh Wyświetl plik

@ -100,6 +100,11 @@ then
if [ "$BNAME" != "LAST" ]
then
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
#

+ 1
- 1
scripts/tweet.sh Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz