Browse Source

Deprecating "difficulty-multiplier" setting

djm34
Jan Berdajs 10 years ago
parent
commit
30d0a9be78
  1. 2
      doc/configuration.md
  2. 3
      sgminer.c

2
doc/configuration.md

@ -1862,7 +1862,7 @@ The above would start mining `scrypt` on `pool.ip` with devices `0, 2, 3, 4, 5`. @@ -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

3
sgminer.c

@ -1237,6 +1237,7 @@ static char *set_null(const char __maybe_unused *arg) @@ -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[] = { @@ -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…
Cancel
Save