1
0
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:
Noel Maersk 2014-04-12 17:32:41 +03:00
parent 5409ffc2a4
commit 92c3b5eb48

View File

@ -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);