erreur sur final_hash et modif block2.sh
This commit is contained in:
@@ -49,10 +49,12 @@ for($i=0; $i<$nb_max; $i++)
|
||||
{
|
||||
$the_block = blockchain::getBlockWithHash($block_hash);
|
||||
if ($the_block === FALSE) die();
|
||||
|
||||
$hash=DATA_PATH.'/hashes/'.$the_block->hash.'.png';
|
||||
|
||||
$block_hash = $the_block->prev_block;
|
||||
|
||||
$hash=DATA_PATH.'/hashes/'.$the_block->hash.'.png';
|
||||
if ($final_hash == 'default') $final_hash = $hash;
|
||||
|
||||
if (file_exists($hash))
|
||||
{
|
||||
$src_img = imagecreatefrompng($hash);
|
||||
|
||||
Reference in New Issue
Block a user