mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 12:34:27 +00:00
Added algorrithm name to "coin" API command. Changed default algo name to "scrypt".
This commit is contained in:
parent
95e397d3b5
commit
0e37fc24b0
@ -17,9 +17,9 @@ void set_algorithm(algorithm_t* algo, const char* newname) {
|
||||
algo->name[sizeof(algo->name) - 1] = '\0';
|
||||
|
||||
if (strcmp(algo->name, "adaptive-nfactor") == 0) {
|
||||
set_algorithm_nfactor(algo, 11);
|
||||
set_algorithm_nfactor(algo, 11);
|
||||
} else {
|
||||
set_algorithm_nfactor(algo, 10);
|
||||
set_algorithm_nfactor(algo, 10);
|
||||
}
|
||||
|
||||
return;
|
||||
|
2
api.c
2
api.c
@ -2856,7 +2856,7 @@ static void minecoin(struct io_data *io_data, __maybe_unused SOCKETTYPE c, __may
|
||||
message(io_data, MSG_MINECOIN, 0, NULL, isjson);
|
||||
io_open = io_add(io_data, isjson ? COMSTR JSON_MINECOIN : _MINECOIN COMSTR);
|
||||
|
||||
root = api_add_const(root, "Hash Method", SCRYPTSTR, false);
|
||||
root = api_add_string(root, "Hash Method", algorithm->name, false);
|
||||
|
||||
cg_rlock(&ch_lock);
|
||||
root = api_add_timeval(root, "Current Block Time", &block_timeval, true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user