ajout de emptybot

This commit is contained in:
2019-01-27 07:28:31 +01:00
parent ab2d7de654
commit f597fc4995
9 changed files with 242 additions and 10 deletions

View File

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