From fe43c3ca36e4281c54ddad5646d21f6858d79bc8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 28 Apr 2014 15:53:24 +0200 Subject: [PATCH] Add genesis hash. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- contrib/chash/chash.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/chash/chash.php b/contrib/chash/chash.php index 45ce33d6..0e60d0fb 100644 --- a/contrib/chash/chash.php +++ b/contrib/chash/chash.php @@ -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, -- 2.39.5