mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-10 14:58:01 +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
|
||||
|
||||
**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
|
||||
|
||||
|
@ -1237,6 +1237,7 @@ static char *set_null(const char __maybe_unused *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]))
|
||||
return "Invalid parameters for set difficulty multiplier";
|
||||
opt_diff_mult = strtod(arg, NULL);
|
||||
@ -1704,7 +1705,7 @@ struct opt_table opt_config_table[] = {
|
||||
opt_set_bool, NULL, NULL, opt_hidden),
|
||||
OPT_WITH_ARG("--difficulty-multiplier",
|
||||
set_difficulty_multiplier, NULL, NULL,
|
||||
"Difficulty multiplier for jobs received from stratum pools"),
|
||||
"(deprecated) Difficulty multiplier for jobs received from stratum pools"),
|
||||
OPT_ENDTABLE
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user