mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
api: set algorithm properly on addpool.
This commit is contained in:
parent
5409ffc2a4
commit
92c3b5eb48
@ -7526,7 +7526,7 @@ bool add_pool_details(struct pool *pool, bool live, char *url, char *user, char
|
|||||||
pool->rpc_pass = pass;
|
pool->rpc_pass = pass;
|
||||||
pool->name = name;
|
pool->name = name;
|
||||||
pool->description = desc;
|
pool->description = desc;
|
||||||
strcpy(pool->algorithm.name, algo);
|
set_algorithm(&pool->algorithm, algo);
|
||||||
|
|
||||||
siz = strlen(pool->rpc_user) + strlen(pool->rpc_pass) + 2;
|
siz = strlen(pool->rpc_user) + strlen(pool->rpc_pass) + 2;
|
||||||
pool->rpc_userpass = (char *)malloc(siz);
|
pool->rpc_userpass = (char *)malloc(siz);
|
||||||
|
Loading…
Reference in New Issue
Block a user