diff --git a/pool.c b/pool.c index 03752097..285c09e4 100644 --- a/pool.c +++ b/pool.c @@ -36,12 +36,15 @@ #include char* get_pool_name(struct pool *pool) { - if (opt_incognito) return POOL_NAME_INCOGNITO; + if (opt_incognito) return ""; + if (strcmp(pool->poolname, "") == 0) return pool->sockaddr_url; + return pool->poolname; } char* get_pool_user(struct pool *pool) { - if (opt_incognito) return POOL_USER_INCOGNITO; + if (opt_incognito) return ""; + return pool->rpc_user; } diff --git a/pool.h b/pool.h index 8b7150b9..97873acb 100644 --- a/pool.h +++ b/pool.h @@ -3,9 +3,6 @@ #include "miner.h" -#define POOL_NAME_INCOGNITO "" -#define POOL_USER_INCOGNITO "" - extern char* get_pool_name(struct pool *pool); extern char* get_pool_user(struct pool *pool);