Much smaller nonce means much more to calculate + logged it on success (found hash).
authorRoland Häder <haeder@hmmdeutschland.de>
Mon, 28 Apr 2014 12:22:35 +0000 (14:22 +0200)
committerRoland Häder <haeder@hmmdeutschland.de>
Mon, 28 Apr 2014 12:22:35 +0000 (14:22 +0200)
Signed-off-by: Roland Häder <haeder@hmmdeutschland.de>
contrib/chash/chash.php

index eb55f6c00c0b5c8953618495f80047dca5ef5965..6705b960e81887b67cc17d2974c6599fb32a26c8 100644 (file)
@@ -3,7 +3,7 @@ error_reporting(E_ALL | E_STRICT);
 
 define('HASH_ALGO', MHASH_RIPEMD320);
 define('BLOCK_SIZE', 100);
-define('NONCE_INCREMENT', 0.0000000001);
+define('NONCE_INCREMENT', 0.0000000000000001);
 define('START_TIME', microtime(TRUE));
 
 // Found hashes
@@ -322,7 +322,7 @@ while (TRUE) {
                array_push($foundHashes, $nonceHash);
 
                // Found hash:
-               print ('FOUND: nonceHash=' . $nonceHash .',iter=' . $iter . PHP_EOL);
+               print ('FOUND: nonceHash=' . $nonceHash .',nonce=' . $nonce . ',iter=' . $iter . PHP_EOL);
 
                // Use nonceHash as next modula hash
                $modulaHash = $nonceHash;