1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-08 22:08:02 +00:00

correct target check

This commit is contained in:
orignal 2017-10-19 12:15:49 -04:00
parent 09ec23106b
commit 545bbb0bb9

View File

@ -929,7 +929,7 @@ __kernel void search(__global unsigned char* block, volatile __global uint* outp
hash1[7] += 0x0100000000000000; hash1[7] += 0x0100000000000000;
GOST_g_0(hash, hash1); GOST_g_0(hash, hash1);
// result is first 32 bytes of hash // result is first 32 bytes of hash
if (SWAP8 (hash[0]) <= target) if (SWAP4 (LODWORD (hash[0])) <= HIDWORD (target) && SWAP4 (HIDWORD (hash[0])) <= LODWORD (target))
output[output[0xFF]++] = SWAP4 (nonce); output[output[0xFF]++] = SWAP4 (nonce);
} }