Integrate new algo "cryptonight-lite-ipbc" (#100)

This commit is contained in:
Ben Gräf 2018-04-18 21:50:00 +02:00 committed by GitHub
parent 9ea520a3a4
commit a5c311fad8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 1938 additions and 102 deletions

View file

@ -259,6 +259,7 @@ static struct option const cc_server_options[] = {
static const char *algo_names[] = {
"cryptonight",
"cryptonight-lite",
"cryptonight-lite-ipbc",
"cryptonight-heavy"
};
@ -924,6 +925,11 @@ bool Options::setAlgo(const char *algo)
break;
}
if (i == ARRAY_SIZE(algo_names) - 1 && !strcmp(algo, "cryptonight-light-ipbc")) {
m_algo = ALGO_CRYPTONIGHT_LITE_IPBC;
break;
}
if (i == ARRAY_SIZE(algo_names) - 1 && !strcmp(algo, "cryptonight-heavy")) {
m_algo = ALGO_CRYPTONIGHT_HEAVY;
break;