StratumServer: added autodiff

Autodiff is enabled by default, target time is 30 seconds. It can be disabled with `--no-autodiff` command line option.
This commit is contained in:
SChernykh
2022-05-08 12:30:22 +02:00
parent d4e362cd76
commit 990916ab62
7 changed files with 194 additions and 61 deletions

View File

@@ -125,6 +125,11 @@ Params::Params(int argc, char* argv[])
ok = true;
}
if (strcmp(argv[i], "--no-autodiff") == 0) {
m_autoDiff = false;
ok = true;
}
if (!ok) {
fprintf(stderr, "Unknown command line parameter %s\n\n", argv[i]);
p2pool_usage();