ajout de emptybot
This commit is contained in:
@@ -33,6 +33,9 @@ if ($the_block === FALSE) die();
|
||||
echo $block_hash.' '.$the_block->hash." ".$the_block->height." ".$the_block->n_tx.PHP_EOL;
|
||||
|
||||
if ($block_hash == 'LAST')
|
||||
{
|
||||
// On a demandé le dernier block
|
||||
// On remonte sur les huits derniers pour accélerer les prochaines navigations
|
||||
for($max=0;($max<8)&&(!file_exists(DATA_PATH.'/json/'.$the_block->prev_block.'.zip'));$max++)
|
||||
{
|
||||
$block_hash = $the_block->prev_block;
|
||||
@@ -40,5 +43,5 @@ if ($block_hash == 'LAST')
|
||||
if ($the_block === FALSE) die();
|
||||
echo 'CACHE '.$the_block->hash." ".$the_block->height." ".$the_block->n_tx.PHP_EOL;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user