From 0117ed609e69af977fabaf9c28bbf8cf1300ee89 Mon Sep 17 00:00:00 2001 From: psychocrypt Date: Fri, 27 Oct 2017 20:08:24 +0200 Subject: 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 --- xmrstak/jconf.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'xmrstak/jconf.cpp') 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 -- cgit v1.1