|
@@ -4334,14 +4334,14 @@ bool hashtest(const struct work *work, bool checktarget)
|
|
|
|
|
|
|
|
bool test_nonce(struct work *work, uint32_t nonce, bool checktarget)
|
|
bool test_nonce(struct work *work, uint32_t nonce, bool checktarget)
|
|
|
{
|
|
{
|
|
|
- if (opt_scrypt)
|
|
|
|
|
- return true;
|
|
|
|
|
-
|
|
|
|
|
work->data[64 + 12 + 0] = (nonce >> 0) & 0xff;
|
|
work->data[64 + 12 + 0] = (nonce >> 0) & 0xff;
|
|
|
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;
|
|
|
|
|
|
|
|
|
|
+ if (opt_scrypt)
|
|
|
|
|
+ return true;
|
|
|
|
|
+
|
|
|
return hashtest(work, checktarget);
|
|
return hashtest(work, checktarget);
|
|
|
}
|
|
}
|
|
|
|
|
|