Skip to content
Snippets Groups Projects
Commit 0117ed60 authored by psychocrypt's avatar psychocrypt
Browse files

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
parent 12802f12
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment