From 545bbb0bb9e3b3aa902e5358f4b649652a758d12 Mon Sep 17 00:00:00 2001 From: orignal Date: Thu, 19 Oct 2017 12:15:49 -0400 Subject: [PATCH] correct target check --- kernel/gostcoin-mod.cl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/gostcoin-mod.cl b/kernel/gostcoin-mod.cl index 843e8700..baa4d034 100644 --- a/kernel/gostcoin-mod.cl +++ b/kernel/gostcoin-mod.cl @@ -929,7 +929,7 @@ __kernel void search(__global unsigned char* block, volatile __global uint* outp hash1[7] += 0x0100000000000000; GOST_g_0(hash, hash1); // 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); }