projects
/
core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
497cb65
)
Add genesis hash.
author
Roland Häder
<haeder@hmmdeutschland.de>
Mon, 28 Apr 2014 13:53:24 +0000
(15:53 +0200)
committer
Roland 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
patch
|
blob
|
history
diff --git
a/contrib/chash/chash.php
b/contrib/chash/chash.php
index 45ce33d6753acb4501b9f9babe811a4a664116bc..0e60d0fbbf183432ed64fff3605ff395c9f7d913 100644
(file)
--- 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,