1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-23 04:54:26 +00:00

Do one last check of the work before submitting it.

This commit is contained in:
Con Kolivas 2011-07-22 07:50:20 +10:00
parent 20336ea15d
commit baddb82ad9

3
main.c
View File

@ -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);
}