Add automatic self test.
This commit is contained in:
parent
8235ae0fa6
commit
361394be21
5 changed files with 54 additions and 40 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue