error_reporting(E_ALL | E_STRICT);
define('HASH_ALGO', MHASH_RIPEMD320);
error_reporting(E_ALL | E_STRICT);
define('HASH_ALGO', MHASH_RIPEMD320);
-define('BLOCK_SIZE', 1000);
-define('NONCE_INCREMENT', 0.00001);
+define('BLOCK_SIZE', 100);
+define('NONCE_INCREMENT', 0.0000000000000001);
// Create hash from modulaHash ("genesis hash") and nonce
$nonceHash = doubleHashString($modulaHash . $nonce);
// Create hash from modulaHash ("genesis hash") and nonce
$nonceHash = doubleHashString($modulaHash . $nonce);
//print ('nonce=' . $nonce . ',iter=' . $iter . PHP_EOL);
//print ('nonceHash=' . $nonceHash . PHP_EOL);
//print ('sumNonce=' . $sumNonce . PHP_EOL);
//print ('sumModula=' . $sumModula . PHP_EOL);
} // END - while
//print ('nonce=' . $nonce . ',iter=' . $iter . PHP_EOL);
//print ('nonceHash=' . $nonceHash . PHP_EOL);
//print ('sumNonce=' . $sumNonce . PHP_EOL);
//print ('sumModula=' . $sumModula . PHP_EOL);
} // END - while
// Nothing found, so calculate new nonce
$nonce = calculateNonce($nonce);
continue;
} // END - if
// Nothing found, so calculate new nonce
$nonce = calculateNonce($nonce);
continue;
} // END - if
- //print ('timeBlock=' . $timeBlock . ',timeBadHashes=' . $timeBadHashes . ',hashesPerBlock=' . $hashesPerBlock .',reward=' . $reward . PHP_EOL);
+ print ('timeBlock=' . $timeBlock . ',timeBadHashes=' . $timeBadHashes . ',hashesPerBlock=' . $hashesPerBlock .',reward=' . $reward . PHP_EOL);