Browse Source

Display share difficulty on log with a shortened hash display on submission.

nfactor-troky
Con Kolivas 12 years ago
parent
commit
823a710a54
  1. 4
      cgminer.c

4
cgminer.c

@ -1818,7 +1818,9 @@ static bool submit_upstream_work(const struct work *work, CURL *curl, bool resub @@ -1818,7 +1818,9 @@ static bool submit_upstream_work(const struct work *work, CURL *curl, bool resub
if (opt_scrypt)
sprintf(hashshow, "%08lx.%08lx", (unsigned long)(hash32[7]), (unsigned long)(hash32[6]));
else {
sprintf(hashshow, "%08lx.%08lx%s", (unsigned long)(hash32[6]), (unsigned long)(hash32[5]),
int intdiff = round(work->work_difficulty);
sprintf(hashshow, "%08lx Diff %d%s", (unsigned long)(hash32[6]), intdiff,
work->block? " BLOCK!" : "");
}

Loading…
Cancel
Save