mirror of
https://github.com/GOSTSec/sgminer
synced 2025-08-26 13:52:02 +00:00
algorithm: add nfactor aliases "adaptive-n-factor" and "nscrypt".
Also change whitespace back to "4 spaces".
This commit is contained in:
parent
2b75a67cdf
commit
0db99d66c0
@ -16,7 +16,9 @@ void set_algorithm(algorithm_t* algo, const char* newname) {
|
|||||||
strncpy(algo->name, newname, sizeof(algo->name));
|
strncpy(algo->name, newname, sizeof(algo->name));
|
||||||
algo->name[sizeof(algo->name) - 1] = '\0';
|
algo->name[sizeof(algo->name) - 1] = '\0';
|
||||||
|
|
||||||
if (strcmp(algo->name, "adaptive-nfactor") == 0) {
|
if ((strcmp(algo->name, "adaptive-n-factor") == 0) ||
|
||||||
|
(strcmp(algo->name, "adaptive-nfactor") == 0) ||
|
||||||
|
(strcmp(algo->name, "nscrypt") == 0) ) {
|
||||||
set_algorithm_nfactor(algo, 11);
|
set_algorithm_nfactor(algo, 11);
|
||||||
} else {
|
} else {
|
||||||
set_algorithm_nfactor(algo, 10);
|
set_algorithm_nfactor(algo, 10);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user