Skip to content

Commit

Permalink
show diff by default, like ccminer
Browse files Browse the repository at this point in the history
  • Loading branch information
tpruvot committed Nov 3, 2016
1 parent 51bde21 commit 8441f0b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cpu-miner.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ bool opt_debug_diff = false;
bool opt_protocol = false;
bool opt_benchmark = false;
bool opt_redirect = true;
bool opt_showdiff = false;
bool opt_showdiff = true;
bool opt_extranonce = true;
bool want_longpoll = true;
bool have_longpoll = false;
Expand Down Expand Up @@ -354,7 +354,7 @@ Options:\n\
--no-color disable colored output\n\
-D, --debug enable debug output\n\
-P, --protocol-dump verbose dump of protocol-level activities\n\
--show-diff display submitted block and net difficulty\n"
--hide-diff display submitted block and net difficulty\n"
#ifdef HAVE_SYSLOG_H
"\
-S, --syslog use system log for output messages\n"
Expand Down Expand Up @@ -421,6 +421,7 @@ static struct option const options[] = {
{ "randomize", 0, NULL, 1024 },
{ "scantime", 1, NULL, 's' },
{ "show-diff", 0, NULL, 1013 },
{ "hide-diff", 0, NULL, 1014 },
#ifdef HAVE_SYSLOG_H
{ "syslog", 0, NULL, 'S' },
#endif
Expand Down Expand Up @@ -3065,6 +3066,9 @@ void parse_arg(int key, char *arg)
case 1013:
opt_showdiff = true;
break;
case 1014:
opt_showdiff = false;
break;
case 1016: /* --coinbase-addr */
pk_script_size = address_to_script(pk_script, sizeof(pk_script), arg);
if (!pk_script_size) {
Expand Down

0 comments on commit 8441f0b

Please sign in to comment.