mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-10 23:08:07 +00:00
pool: introduce get_pool_user() for simpler opt_incognito use.
Use immediately.
This commit is contained in:
parent
bd6766f231
commit
934c4f5f14
6
pool.c
6
pool.c
@ -29,6 +29,7 @@
|
||||
|
||||
#include "config.h"
|
||||
#include "miner.h"
|
||||
#include "pool.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
@ -39,3 +40,8 @@ char* get_pool_name(struct pool *pool) {
|
||||
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;
|
||||
return pool->rpc_user;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user