From 12802f12e30f57c2a9eefca2c1a5955275c95127 Mon Sep 17 00:00:00 2001 From: psychocrypt Date: Thu, 26 Oct 2017 20:58:27 +0200 Subject: rename `xmr` to `monero` - rename all `xmr` to `monero` - be insensitive while check for set currency - add function to compate two strings insensitive --- xmrstak/cli/cli-miner.cpp | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'xmrstak/cli/cli-miner.cpp') diff --git a/xmrstak/cli/cli-miner.cpp b/xmrstak/cli/cli-miner.cpp index 054e6db..c15ca56 100644 --- a/xmrstak/cli/cli-miner.cpp +++ b/xmrstak/cli/cli-miner.cpp @@ -31,6 +31,7 @@ #include "xmrstak/params.hpp" #include "xmrstak/misc/configEditor.hpp" #include "xmrstak/version.hpp" +#include "xmrstak/misc/utility.hpp" #ifndef CONF_NO_HTTPD # include "xmrstak/http/httpd.hpp" @@ -64,8 +65,8 @@ void help() cout<<" "<> tmp; } currency = tmp; @@ -264,7 +265,7 @@ int main(int argc, char *argv[]) auto& pool = params::inst().poolURL; if(pool.empty()) { - if(currency.compare("xmr") != 0) + if(xmrstak::strcmp_i(currency, "monero")) std::cout<<"- pool address: e.g. pool.usxmrpool.com:3333"<print_str("'r' - results\n"); printer::inst()->print_str("'c' - connection\n"); printer::inst()->print_str("-------------------------------------------------------------------\n"); - if(::jconf::inst()->IsCurrencyXMR()) - printer::inst()->print_msg(L0,"Start mining: XMR"); + if(::jconf::inst()->IsCurrencyMonero()) + printer::inst()->print_msg(L0,"Start mining: MONERO"); else printer::inst()->print_msg(L0,"Start mining: AEON"); -- cgit v1.1