Skip to content

Commit

Permalink
Merge pull request #2609 from psychocrypt/rx-topic-allowDisableInform…
Browse files Browse the repository at this point in the history
…ationSend

[RX] disable dev support cli option
  • Loading branch information
fireice-uk authored Dec 2, 2019
2 parents aba1dc2 + 7e5b0f7 commit bf8ca6e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
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

0 comments on commit bf8ca6e

Please sign in to comment.