erreur sur final_hash et modif block2.sh

This commit is contained in:
2018-12-30 18:31:18 +01:00
parent b3c60a5a76
commit 642a655352
2 changed files with 15 additions and 3 deletions

View File

@@ -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);