From: Roland Häder Date: Mon, 28 Apr 2014 13:53:24 +0000 (+0200) Subject: Add genesis hash. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fe43c3ca36e4281c54ddad5646d21f6858d79bc8;p=core.git Add genesis hash. Signed-off-by: Roland Häder --- 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,