1
0
mirror of https://github.com/xmrig/xmrig.git synced 2026-01-23 14:52:52 -05:00

Add automatic self test.

This commit is contained in:
XMRig
2017-04-21 17:29:03 +03:00
parent 8235ae0fa6
commit 361394be21
5 changed files with 54 additions and 40 deletions

View File

@@ -393,7 +393,10 @@ void parse_cmdline(int argc, char *argv[]) {
opt_donate_level = 1;
}
cryptonight_init(opt_algo_variant);
if (!cryptonight_init(opt_algo_variant)) {
applog(LOG_ERR, "Cryptonight hash self-test failed. This might be caused by bad compiler optimizations.");
proper_exit(1);
}
}