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;
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -13,12 +13,12 @@ cd $APPS_PATH/blockchain
|
||||
|
||||
rm -f $DATA_PATH/block_list.tmp
|
||||
|
||||
LISTBLOCKS="LAST \
|
||||
GENESIS THE_ANSWER LUCIFER LEET \
|
||||
LISTBLOCKS="GENESIS THE_ANSWER LUCIFER LEET \
|
||||
TOPISTO PIZZA HALVING_1 WHALE201311 \
|
||||
HALVING_2 BIP_91_LOCK BCC SEGWIT_LOCK \
|
||||
SEGWIT HURRICANE_1 WHALE201810 \
|
||||
BLOCK21E800"
|
||||
BLOCK21E800 \
|
||||
LAST"
|
||||
|
||||
for BLOCK in $LISTBLOCKS
|
||||
do
|
||||
|
||||
Reference in New Issue
Block a user