mirror of
https://github.com/jwinterm/xmr-stak.git
synced 2026-10-22 06:28:36 +02:00
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
This commit is contained in:
@@ -255,7 +255,7 @@ int main(int argc, char *argv[])
|
||||
#elif defined(CONF_NO_MONERO)
|
||||
tmp = "aeon";
|
||||
#endif
|
||||
while(xmrstak::strcmp_i(tmp, "monero") && xmrstak::strcmp_i(tmp, "aeon"))
|
||||
while(!xmrstak::strcmp_i(tmp, "monero") && !xmrstak::strcmp_i(tmp, "aeon"))
|
||||
{
|
||||
std::cout<<"- currency: 'monero' or 'aeon'"<<std::endl;
|
||||
std::cin >> tmp;
|
||||
|
||||
+4
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user