Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RX] disable dev support cli option #2609

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions xmrstak/cli/cli-miner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ void help()
cout << " -p, --pass PASSWD pool password, in the most cases x or empty \"\"" << endl;
cout << " --use-nicehash the pool should run in nicehash mode" << endl;
cout << " --currency NAME currency to mine" << endl;
cout << " --noDevSupport To improve our support the miner is sending information" << endl;
cout << " to the development server. " << endl;
cout << " Use this option to disable sending system information." << endl;
cout << " data send:" << endl;
cout << " miner version, used algorithm, system hardware overview" << endl;
cout << " and number of used threads." << endl;
cout << endl;
#ifdef _WIN32
cout << "Environment variables:\n"
Expand Down Expand Up @@ -516,6 +522,10 @@ int main(int argc, char* argv[])
{
params::inst().selfTest = false;
}
else if(opName.compare("--noDevSupport") == 0)
{
params::inst().devSupport = false;
}
else if (opName.compare("--nvidiaGpus") == 0)
{
++i;
Expand Down
10 changes: 7 additions & 3 deletions xmrstak/misc/executor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,8 @@ void executor::ex_main()
if(jconf::inst()->GetVerboseLevel() >= 4)
push_timed_event(ex_event(EV_HASHRATE_LOOP), jconf::inst()->GetAutohashTime());

push_timed_event(ex_event(EV_SOCK_UPDATE_MOTD), 1);
if(xmrstak::params::inst().devSupport)
push_timed_event(ex_event(EV_SOCK_UPDATE_MOTD), 1);

size_t cnt = 0;
while(true)
Expand Down Expand Up @@ -643,8 +644,11 @@ void executor::ex_main()
push_timed_event(ex_event(EV_HASHRATE_LOOP), jconf::inst()->GetAutohashTime());
break;
case EV_SOCK_UPDATE_MOTD:
update_motd(true);
push_timed_event(ex_event(EV_SOCK_UPDATE_MOTD), 60*60);
if(xmrstak::params::inst().devSupport)
{
update_motd(true);
push_timed_event(ex_event(EV_SOCK_UPDATE_MOTD), 60*60);
}
break;
case EV_MOTD_LINK:
open_motd_link();
Expand Down
1 change: 1 addition & 0 deletions xmrstak/params.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ struct params
std::string poolUsername;
bool nicehashMode = false;
bool selfTest = true;
bool devSupport = true;

static constexpr int32_t httpd_port_unset = -1;
static constexpr int32_t httpd_port_disabled = 0;
Expand Down