summaryrefslogtreecommitdiffstats
path: root/xmrstak/jconf.cpp
diff options
context:
space:
mode:
authorpsychocrypt <psychocrypt@users.noreply.github.com>2017-10-27 20:08:24 +0200
committerpsychocrypt <psychocrypt@users.noreply.github.com>2017-10-27 20:13:19 +0200
commit0117ed609e69af977fabaf9c28bbf8cf1300ee89 (patch)
treefe71edd305f523021c9038dab5595551c7e4c7e2 /xmrstak/jconf.cpp
parent12802f12e30f57c2a9eefca2c1a5955275c95127 (diff)
downloadxmr-stak-0117ed609e69af977fabaf9c28bbf8cf1300ee89.zip
xmr-stak-0117ed609e69af977fabaf9c28bbf8cf1300ee89.tar.gz
fix bug inserted during `xmr/monero` renaming
- fix that currency selection is not called (in cli-miner.cpp) - fix guard to prevent wrong currency selection if compiled for monero or aeon only
Diffstat (limited to 'xmrstak/jconf.cpp')
-rw-r--r--xmrstak/jconf.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/xmrstak/jconf.cpp b/xmrstak/jconf.cpp
index 5ada0d6..4b23ed5 100644
--- a/xmrstak/jconf.cpp
+++ b/xmrstak/jconf.cpp
@@ -159,13 +159,15 @@ const std::string jconf::GetCurrency()
currency = prv->configValues[sCurrency]->GetString();
if(
#ifndef CONF_NO_MONERO
- xmrstak::strcmp_i(currency, "monero")
+ // if monero is disabled at compile time, enable error message if selected currency is `monero`
+ !xmrstak::strcmp_i(currency, "monero")
#else
true
#endif
&&
#ifndef CONF_NO_AEON
- xmrstak::strcmp_i(currency, "aeon")
+ // if aeon is disabled at compile time, enable error message if selected currency is `aeon`
+ !xmrstak::strcmp_i(currency, "aeon")
#else
true
#endif
OpenPOWER on IntegriCloud