Ce qui a pour effet de placer le block dans le cache // --- $the_block = blockchain::getSpecialBlock($block_hash); if ($the_block === FALSE) die(); // --- // --- On en recherche 6 sur approximativement 6 heures (36 blocks) // --- $max = 6; while($max > 0) { $block_hash = $the_block->prev_block; if (!file_exists(DATA_PATH.'/json/'.$block_hash.'.zip')) echo 'CACHE '.$block_hash.' '.($the_block->height-1)." ".$the_block->n_tx.PHP_EOL; $the_block = blockchain::getBlockWithHash($block_hash); if ($the_block === FALSE) die(); $max--; } ?>