blockchain : cache.php se limite aux 6 derniers blocs
This commit is contained in:
@@ -30,8 +30,7 @@ if ($the_block === FALSE) die();
|
|||||||
// --- On en recherche 6 sur approximativement 6 heures (36 blocks)
|
// --- On en recherche 6 sur approximativement 6 heures (36 blocks)
|
||||||
// ---
|
// ---
|
||||||
$max = 6;
|
$max = 6;
|
||||||
$max2 = 36;
|
while($max > 0)
|
||||||
while(($max > 0)&&($max2 > 0))
|
|
||||||
{
|
{
|
||||||
$block_hash = $the_block->prev_block;
|
$block_hash = $the_block->prev_block;
|
||||||
|
|
||||||
@@ -42,7 +41,6 @@ while(($max > 0)&&($max2 > 0))
|
|||||||
if ($the_block === FALSE) die();
|
if ($the_block === FALSE) die();
|
||||||
|
|
||||||
$max--;
|
$max--;
|
||||||
$max2--;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user