P2Pool-nano support
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user