|
|
@ -554,6 +554,8 @@ struct pool *add_pool(void) |
|
|
|
pool->quota = 1; |
|
|
|
pool->quota = 1; |
|
|
|
adjust_quota_gcd(); |
|
|
|
adjust_quota_gcd(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pool->coin = ""; |
|
|
|
|
|
|
|
|
|
|
|
return pool; |
|
|
|
return pool; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -925,6 +927,16 @@ static char *set_pool_priority(char *arg) |
|
|
|
return NULL; |
|
|
|
return NULL; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static char *set_pool_coin(char *arg) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
struct pool *pool = get_current_pool(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
applog(LOG_DEBUG, "Setting pool %i coin to %s", pool->pool_no, arg); |
|
|
|
|
|
|
|
opt_set_charp(arg, &pool->coin); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return NULL; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
static char *enable_debug(bool *flag) |
|
|
|
static char *enable_debug(bool *flag) |
|
|
|
{ |
|
|
|
{ |
|
|
|
*flag = true; |
|
|
|
*flag = true; |
|
|
@ -1397,6 +1409,9 @@ static struct opt_table opt_config_table[] = { |
|
|
|
OPT_WITH_ARG("--pool-priority", |
|
|
|
OPT_WITH_ARG("--pool-priority", |
|
|
|
set_pool_priority, NULL, NULL, |
|
|
|
set_pool_priority, NULL, NULL, |
|
|
|
"Pool priority"), |
|
|
|
"Pool priority"), |
|
|
|
|
|
|
|
OPT_WITH_ARG("--coin", |
|
|
|
|
|
|
|
set_pool_coin, NULL, NULL, |
|
|
|
|
|
|
|
"Pool coin"), |
|
|
|
OPT_WITHOUT_ARG("--worktime", |
|
|
|
OPT_WITHOUT_ARG("--worktime", |
|
|
|
opt_set_bool, &opt_worktime, |
|
|
|
opt_set_bool, &opt_worktime, |
|
|
|
"Display extra work time debug information"), |
|
|
|
"Display extra work time debug information"), |
|
|
|