mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-02 10:04:33 +00:00
pool: add back --poolname as hidden option for backward compatibility.
+ Udate NEWS.
This commit is contained in:
parent
49aef7100f
commit
fc902f0f41
1
NEWS.md
1
NEWS.md
@ -5,6 +5,7 @@
|
|||||||
* Adaptive-N-factor algorithm support (by _Bufius_, _Zuikkis_ and
|
* Adaptive-N-factor algorithm support (by _Bufius_, _Zuikkis_ and
|
||||||
_veox_). For details on choosing the algorithm, see
|
_veox_). For details on choosing the algorithm, see
|
||||||
`doc/configuration.md`.
|
`doc/configuration.md`.
|
||||||
|
* Setting pool name with `poolname` is deprecated. Use `name` instead.
|
||||||
|
|
||||||
|
|
||||||
## Version 4.1.153 - 14th March 2014
|
## Version 4.1.153 - 14th March 2014
|
||||||
|
17
sgminer.c
17
sgminer.c
@ -766,6 +766,14 @@ static char *set_poolname(char *arg)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static char *set_poolname_deprecated(char *arg)
|
||||||
|
{
|
||||||
|
applog(LOG_ERR, "Specifying pool name by --poolname is deprecated. Use --name instead.");
|
||||||
|
set_poolname(arg);
|
||||||
|
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
static void enable_pool(struct pool *pool)
|
static void enable_pool(struct pool *pool)
|
||||||
{
|
{
|
||||||
if (pool->state != POOL_ENABLED)
|
if (pool->state != POOL_ENABLED)
|
||||||
@ -1239,6 +1247,9 @@ static struct opt_table opt_config_table[] = {
|
|||||||
opt_set_charp, NULL, &opt_stderr_cmd,
|
opt_set_charp, NULL, &opt_stderr_cmd,
|
||||||
"Use custom pipe cmd for output messages"),
|
"Use custom pipe cmd for output messages"),
|
||||||
#endif // defined(unix)
|
#endif // defined(unix)
|
||||||
|
OPT_WITH_ARG("--name",
|
||||||
|
set_poolname, NULL, NULL,
|
||||||
|
"Name of pool"),
|
||||||
OPT_WITHOUT_ARG("--net-delay",
|
OPT_WITHOUT_ARG("--net-delay",
|
||||||
opt_set_bool, &opt_delaynet,
|
opt_set_bool, &opt_delaynet,
|
||||||
"Impose small delays in networking to not overload slow routers"),
|
"Impose small delays in networking to not overload slow routers"),
|
||||||
@ -1268,9 +1279,9 @@ static struct opt_table opt_config_table[] = {
|
|||||||
OPT_WITHOUT_ARG("--per-device-stats",
|
OPT_WITHOUT_ARG("--per-device-stats",
|
||||||
opt_set_bool, &want_per_device_stats,
|
opt_set_bool, &want_per_device_stats,
|
||||||
"Force verbose mode and output per-device statistics"),
|
"Force verbose mode and output per-device statistics"),
|
||||||
OPT_WITH_ARG("--name",
|
OPT_WITH_ARG("--poolname", /* Backward compatibility, to be removed. */
|
||||||
set_poolname, NULL, NULL,
|
set_poolname_deprecated, NULL, NULL,
|
||||||
"Name of pool."),
|
opt_hidden),
|
||||||
OPT_WITHOUT_ARG("--protocol-dump|-P",
|
OPT_WITHOUT_ARG("--protocol-dump|-P",
|
||||||
opt_set_bool, &opt_protocol,
|
opt_set_bool, &opt_protocol,
|
||||||
"Verbose dump of protocol-level activities"),
|
"Verbose dump of protocol-level activities"),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user