Added --mini command line option to connect to p2pool-mini

This commit is contained in:
SChernykh
2022-02-14 13:57:59 +01:00
parent 9f449320b5
commit ec2f4467fb
5 changed files with 10 additions and 1 deletions

View File

@@ -97,6 +97,10 @@ Params::Params(int argc, char* argv[])
if ((strcmp(argv[i], "--start-mining") == 0) && (i + 1 < argc)) {
m_minerThreads = std::min(std::max(strtoul(argv[++i], nullptr, 10), 1UL), 64UL);
}
if (strcmp(argv[i], "--mini") == 0) {
m_mini = true;
}
}
if (m_stratumAddresses.empty()) {