From c62d1154257581467038cd0e7ac65a4bf0e6b596 Mon Sep 17 00:00:00 2001 From: miketout Date: Fri, 27 Apr 2018 17:03:31 -0700 Subject: [PATCH] Cleaned up algo parameter --- src/komodo_utils.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/komodo_utils.h b/src/komodo_utils.h index 0b15992cc..8e1d4a25c 100644 --- a/src/komodo_utils.h +++ b/src/komodo_utils.h @@ -1705,19 +1705,14 @@ void komodo_args(char *argv0) } if ( name.c_str()[0] != 0 ) { - std:locale loc; - std::string selectedAlgo = std::tolower(GetArg("-ac_algo", std::string(ASSETCHAINS_ALGORITHMS[0])), loc); + std::string selectedAlgo = GetArg("-ac_algo", std::string(ASSETCHAINS_ALGORITHMS[0])); for ( int i = 0; i < ASSETCHAINS_NUMALGOS; i++ ) { if (std::string(ASSETCHAINS_ALGORITHMS[i]) == selectedAlgo) { ASSETCHAINS_ALGO = i; - // default is SHA256D, so leave it unless otherwise - if (ASSETCHAINS_ALGO == ASSETCHAINS_VERUSHASH) - { - printf("ASSETCHAINS_ALGO, algorithm set to VerusHash\n"); - } + printf("ASSETCHAINS_ALGO, algorithm set to %s\n", selectedAlgo.c_str()); break; } }