mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-02 10:04:33 +00:00
Do one last check of the work before submitting it.
This commit is contained in:
parent
20336ea15d
commit
baddb82ad9
3
main.c
3
main.c
@ -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+1] = (nonce>>8) & 0xff;
|
||||||
work->data[64+12+2] = (nonce>>16) & 0xff;
|
work->data[64+12+2] = (nonce>>16) & 0xff;
|
||||||
work->data[64+12+3] = (nonce>>24) & 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);
|
return submit_work_sync(thr, work);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user