Browse Source

api: set algorithm properly on addpool.

refactor
Noel Maersk 11 years ago
parent
commit
92c3b5eb48
  1. 2
      sgminer.c

2
sgminer.c

@ -7526,7 +7526,7 @@ bool add_pool_details(struct pool *pool, bool live, char *url, char *user, char @@ -7526,7 +7526,7 @@ bool add_pool_details(struct pool *pool, bool live, char *url, char *user, char
pool->rpc_pass = pass;
pool->name = name;
pool->description = desc;
strcpy(pool->algorithm.name, algo);
set_algorithm(&pool->algorithm, algo);
siz = strlen(pool->rpc_user) + strlen(pool->rpc_pass) + 2;
pool->rpc_userpass = (char *)malloc(siz);

Loading…
Cancel
Save