We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d58de45 commit 4059780Copy full SHA for 4059780
pool.c
@@ -36,12 +36,15 @@
36
#include <string.h>
37
38
char* get_pool_name(struct pool *pool) {
39
- if (opt_incognito) return POOL_NAME_INCOGNITO;
+ if (opt_incognito) return "<pool>";
40
+
41
if (strcmp(pool->poolname, "") == 0) return pool->sockaddr_url;
42
43
return pool->poolname;
44
}
45
46
char* get_pool_user(struct pool *pool) {
- if (opt_incognito) return POOL_USER_INCOGNITO;
47
+ if (opt_incognito) return "<user>";
48
49
return pool->rpc_user;
50
pool.h
@@ -3,9 +3,6 @@
3
4
#include "miner.h"
5
6
-#define POOL_NAME_INCOGNITO "<incognito>"
7
-#define POOL_USER_INCOGNITO "<incognito>"
8
-
9
extern char* get_pool_name(struct pool *pool);
10
extern char* get_pool_user(struct pool *pool);
11
0 commit comments