P2Pool-nano support

This commit is contained in:
SChernykh
2025-05-28 11:23:32 +02:00
parent 3f80244d84
commit e0c1d9377c
10 changed files with 69 additions and 7 deletions

View File

@@ -153,6 +153,11 @@ Params::Params(int argc, char* const argv[])
ok = true;
}
if (strcmp(argv[i], "--nano") == 0) {
m_nano = true;
ok = true;
}
if (strcmp(argv[i], "--no-autodiff") == 0) {
m_autoDiff = false;
ok = true;
@@ -300,6 +305,11 @@ bool Params::valid() const
}
#endif
if (m_mini && m_nano) {
LOGERR(1, "You can't have both --mini and --nano in the command line");
return false;
}
return true;
}