Skip to content

Commit

Permalink
Bugfix: Cannot duplicate userpass option or we end up with it process…
Browse files Browse the repository at this point in the history
…ed double
  • Loading branch information
luke-jr committed Oct 26, 2014
1 parent 3f21b2b commit afb9bae
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions miner.c
Original file line number Diff line number Diff line change
Expand Up @@ -1159,9 +1159,9 @@ static struct opt_table opt_config_table[] = {
OPT_WITHOUT_ARG("--per-device-stats",
opt_set_bool, &want_per_device_stats,
"Force verbose mode and output per-device statistics"),
OPT_WITH_ARG("--userpass|-O", // duplicate to ensure config loads it before pool-priority
OPT_WITH_ARG("--userpass|-O",
set_userpass, NULL, NULL,
opt_hidden),
"Username:Password pair for bitcoin JSON-RPC server"),
OPT_WITH_ARG("--pool-priority",
set_pool_priority, NULL, NULL,
"Priority for just the previous-defined pool"),
Expand Down Expand Up @@ -1289,9 +1289,6 @@ static struct opt_table opt_config_table[] = {
set_worksize, NULL, NULL,
"Override detected optimal worksize - one value or comma separated list"),
#endif
OPT_WITH_ARG("--userpass|-O",
set_userpass, NULL, NULL,
"Username:Password pair for bitcoin JSON-RPC server"),
OPT_WITHOUT_ARG("--worktime",
opt_set_bool, &opt_worktime,
"Display extra work time debug information"),
Expand Down

0 comments on commit afb9bae

Please sign in to comment.