Browse Source

Cleaned up algo parameter

pull/4/head
miketout 6 years ago
parent
commit
c62d115425
  1. 9
      src/komodo_utils.h

9
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;
}
}

Loading…
Cancel
Save