Fixed turtle self-check
This commit is contained in:
parent
7cec4e9a50
commit
651e650037
2 changed files with 3 additions and 4 deletions
|
@ -73,7 +73,7 @@ Options:\n"
|
||||||
-k, --keepalive send keepalived for prevent timeout (need pool support)\n\
|
-k, --keepalive send keepalived for prevent timeout (need pool support)\n\
|
||||||
-r, --retries=N number of times to retry before switch to backup server (default: 5)\n\
|
-r, --retries=N number of times to retry before switch to backup server (default: 5)\n\
|
||||||
-R, --retry-pause=N time to pause between retries (default: 5)\n\
|
-R, --retry-pause=N time to pause between retries (default: 5)\n\
|
||||||
--pow-variant=V specificy the PoW variat to use: -> 'auto' (default), '0' (v0), '1' (v1, aka cnv7), '2' (v2, aka cnv8), 'ipbc' (tube), 'xao', 'xtl' (including autodetect for > v5), 'rto', 'xfh', 'upx', 'turtle'\n\
|
--pow-variant=V specificy the PoW variat to use: -> 'auto' (default), '0' (v0), '1' (v1, aka cnv7), '2' (v2, aka cnv8), 'ipbc' (tube), 'xao', 'xtl' (including autodetect for > v5), 'rto', 'xfh', 'upx', 'turtle', 'hosp'\n\
|
||||||
for further help see: https://github.com/Bendr0id/xmrigCC/wiki/Coin-configurations\n\
|
for further help see: https://github.com/Bendr0id/xmrigCC/wiki/Coin-configurations\n\
|
||||||
--asm-optimization=V specificy the ASM optimization to use: -> 'auto' (default), 'intel', 'ryzen', 'bulldozer', 'off' \n\
|
--asm-optimization=V specificy the ASM optimization to use: -> 'auto' (default), 'intel', 'ryzen', 'bulldozer', 'off' \n\
|
||||||
--multihash-factor=N number of hash blocks to process at a time (don't set or 0 enables automatic selection of optimal number of hash blocks)\n\
|
--multihash-factor=N number of hash blocks to process at a time (don't set or 0 enables automatic selection of optimal number of hash blocks)\n\
|
||||||
|
|
|
@ -559,14 +559,13 @@ bool CryptoNight::selfTest(int algo)
|
||||||
} else if (algo == Options::ALGO_CRYPTONIGHT_ULTRALITE) {
|
} else if (algo == Options::ALGO_CRYPTONIGHT_ULTRALITE) {
|
||||||
// cn ultralite (cnv8 + turtle)
|
// cn ultralite (cnv8 + turtle)
|
||||||
|
|
||||||
cryptonight_hash_ctx[0](asmOptimization, PowVariant::POW_V2, test_input, 76, output, scratchPads);
|
cryptonight_hash_ctx[0](asmOptimization, PowVariant::POW_TURTLE, test_input, 76, output, scratchPads);
|
||||||
resultUltraLite = resultUltraLite && memcmp(output, test_output_turtle, 32) == 0;
|
resultUltraLite = resultUltraLite && memcmp(output, test_output_turtle, 32) == 0;
|
||||||
|
|
||||||
#if MAX_NUM_HASH_BLOCKS > 1
|
#if MAX_NUM_HASH_BLOCKS > 1
|
||||||
cryptonight_hash_ctx[1](asmOptimization, PowVariant::POW_V2, test_input, 76, output, scratchPads);
|
cryptonight_hash_ctx[1](asmOptimization, PowVariant::POW_TURTLE, test_input, 76, output, scratchPads);
|
||||||
resultUltraLite = resultUltraLite && memcmp(output, test_output_turtle, 64) == 0;
|
resultUltraLite = resultUltraLite && memcmp(output, test_output_turtle, 64) == 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// cn v0 aka orignal
|
// cn v0 aka orignal
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue