]> git.mxchange.org Git - core.git/commitdiff
Add genesis hash.
authorRoland Häder <haeder@hmmdeutschland.de>
Mon, 28 Apr 2014 13:53:24 +0000 (15:53 +0200)
committerRoland Häder <haeder@hmmdeutschland.de>
Mon, 28 Apr 2014 13:53:24 +0000 (15:53 +0200)
Signed-off-by: Roland Häder <haeder@hmmdeutschland.de>
contrib/chash/chash.php

index 45ce33d6753acb4501b9f9babe811a4a664116bc..0e60d0fbbf183432ed64fff3605ff395c9f7d913 100644 (file)
@@ -230,6 +230,9 @@ $sqrtHashes = array(
 // Calulcate modula hash
 $modulaHash = doubleHashString(modulaHash($sqrtHashes[0], $sqrtHashes[1]));
 
+// This is also the "genesis hash"
+$genesisHash = $modulaHash;
+
 // Output results
 print ('hashes=' . print_r($hashes, TRUE));
 print ('modulaHashes=' . print_r($modulaHashes, TRUE));
@@ -362,6 +365,7 @@ while (TRUE) {
                // Push found hash
                array_push($foundHashes, array(
                        'modula_hash'  => $modulaHash,
+                       'genesis_hash' => $genesisHash,
                        'nonce'        => $nonce,
                        'iter'         => $iter,
                        'hashes_block' => $hashesPerBlock,