summaryrefslogtreecommitdiffstats
path: root/xmrstak/cli
diff options
context:
space:
mode:
authorUnknown <fireice-uk@users.noreply.github.com>2017-12-07 15:06:49 +0000
committerfireice-uk <fireice-uk@users.noreply.github.com>2017-12-08 11:35:18 +0000
commitc4ae72ecfb09218171197dba012ce485b5cfc222 (patch)
treeafb449279a675f78c6b2adc7e848232f30bc9bdd /xmrstak/cli
parentb0f17cffc8a353db96bc9c8438330d90f63cbf72 (diff)
downloadxmr-stak-c4ae72ecfb09218171197dba012ce485b5cfc222.zip
xmr-stak-c4ae72ecfb09218171197dba012ce485b5cfc222.tar.gz
Add --use-nicehash option
Diffstat (limited to 'xmrstak/cli')
-rw-r--r--xmrstak/cli/cli-miner.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/xmrstak/cli/cli-miner.cpp b/xmrstak/cli/cli-miner.cpp
index 639a28e..be9b917 100644
--- a/xmrstak/cli/cli-miner.cpp
+++ b/xmrstak/cli/cli-miner.cpp
@@ -91,6 +91,7 @@ void help()
cout<<" -O, --tls-url URL TLS pool url and port, e.g. pool.usxmrpool.com:10443"<<endl;
cout<<" -u, --user USERNAME pool user name or wallet address"<<endl;
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<<" \n"<<endl;
#ifdef _WIN32
cout<<"Environment variables:\n"<<endl;
@@ -260,7 +261,7 @@ void do_guided_config()
nicehash = read_yes_no("- Do you want to use nicehash on this pool? (y/n)");
}
else
- nicehash = false;
+ nicehash = params::inst().nicehashMode;
bool multipool;
if(!userSetPool)
@@ -499,6 +500,10 @@ int main(int argc, char *argv[])
params::inst().userSetPwd = true;
params::inst().poolPasswd = argv[i];
}
+ else if(opName.compare("--use-nicehash") == 0)
+ {
+ params::inst().nicehashMode = true;
+ }
else if(opName.compare("-c") == 0 || opName.compare("--config") == 0)
{
++i;
OpenPOWER on IntegriCloud