block change

This commit is contained in:
Arionum
2018-02-22 21:31:56 +02:00
parent 1b03a3a292
commit 6f05bd7da0
2 changed files with 5 additions and 5 deletions

View File

@@ -16,8 +16,8 @@ public function add($height, $public_key, $nonce, $data, $date, $signature, $dif
// create the hash / block id
$hash=$this->hash($generator, $height, $date, $nonce, $data, $signature, $difficulty, $argon);
//fix for the broken base58 library used until block 17000, trimming the first 0 bytes.
if($height<=17000) $hash=ltrim($hash,'1');
//fix for the broken base58 library used until block 16900, trimming the first 0 bytes.
if($height<16900) $hash=ltrim($hash,'1');
$json=json_encode($data);