|
|
@ -29,6 +29,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
#include "config.h" |
|
|
|
#include "config.h" |
|
|
|
#include "miner.h" |
|
|
|
#include "miner.h" |
|
|
|
|
|
|
|
#include "pool.h" |
|
|
|
|
|
|
|
|
|
|
|
#include <stdlib.h> |
|
|
|
#include <stdlib.h> |
|
|
|
#include <stdint.h> |
|
|
|
#include <stdint.h> |
|
|
@ -39,3 +40,8 @@ char* get_pool_name(struct pool *pool) { |
|
|
|
if (strcmp(pool->poolname, "") == 0) return pool->sockaddr_url; |
|
|
|
if (strcmp(pool->poolname, "") == 0) return pool->sockaddr_url; |
|
|
|
return pool->poolname; |
|
|
|
return pool->poolname; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
char* get_pool_user(struct pool *pool) { |
|
|
|
|
|
|
|
if (opt_incognito) return POOL_USER_INCOGNITO; |
|
|
|
|
|
|
|
return pool->rpc_user; |
|
|
|
|
|
|
|
} |
|
|
|