mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-25 14:04:25 +00:00
Deprecating "difficulty-multiplier" setting
This commit is contained in:
parent
e8f108929c
commit
30d0a9be78
@ -1862,7 +1862,7 @@ The above would start mining `scrypt` on `pool.ip` with devices `0, 2, 3, 4, 5`.
|
|||||||
|
|
||||||
### difficulty-multiplier
|
### difficulty-multiplier
|
||||||
|
|
||||||
**Need clarification** Set the difficulty multiplier for jobs received from stratum pools.
|
**DEPRECATED** Set the difficulty multiplier for jobs received from stratum pools.
|
||||||
|
|
||||||
*Available*: Global
|
*Available*: Global
|
||||||
|
|
||||||
|
@ -1237,6 +1237,7 @@ static char *set_null(const char __maybe_unused *arg)
|
|||||||
|
|
||||||
char *set_difficulty_multiplier(char *arg)
|
char *set_difficulty_multiplier(char *arg)
|
||||||
{
|
{
|
||||||
|
applog(LOG_WARNING, "Option difficulty-multiplier is deprecated and will be removed in v5.1. Pools that need this option should fix their setup.");
|
||||||
if (!(arg && arg[0]))
|
if (!(arg && arg[0]))
|
||||||
return "Invalid parameters for set difficulty multiplier";
|
return "Invalid parameters for set difficulty multiplier";
|
||||||
opt_diff_mult = strtod(arg, NULL);
|
opt_diff_mult = strtod(arg, NULL);
|
||||||
@ -1704,7 +1705,7 @@ struct opt_table opt_config_table[] = {
|
|||||||
opt_set_bool, NULL, NULL, opt_hidden),
|
opt_set_bool, NULL, NULL, opt_hidden),
|
||||||
OPT_WITH_ARG("--difficulty-multiplier",
|
OPT_WITH_ARG("--difficulty-multiplier",
|
||||||
set_difficulty_multiplier, NULL, NULL,
|
set_difficulty_multiplier, NULL, NULL,
|
||||||
"Difficulty multiplier for jobs received from stratum pools"),
|
"(deprecated) Difficulty multiplier for jobs received from stratum pools"),
|
||||||
OPT_ENDTABLE
|
OPT_ENDTABLE
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user