Browse Source

Do one last check of the work before submitting it.

nfactor-troky
Con Kolivas 14 years ago
parent
commit
baddb82ad9
  1. 3
      main.c

3
main.c

@ -1817,6 +1817,9 @@ bool submit_nonce(struct thr_info *thr, struct work *work, uint32_t nonce) @@ -1817,6 +1817,9 @@ bool submit_nonce(struct thr_info *thr, struct work *work, uint32_t nonce)
work->data[64+12+1] = (nonce>>8) & 0xff;
work->data[64+12+2] = (nonce>>16) & 0xff;
work->data[64+12+3] = (nonce>>24) & 0xff;
/* Do one last check before attempting to submit the work */
if (!fulltest(work->data + 64, work->target))
return true;
return submit_work_sync(thr, work);
}

Loading…
Cancel
Save