From 932bd48dd2793cc6ab3927078915b6dfae7264b1 Mon Sep 17 00:00:00 2001 From: orignal Date: Thu, 4 May 2017 12:56:15 -0400 Subject: [PATCH] support difficutly >= 1 --- gost.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gost.c b/gost.c index 9afbb5a..f06a451 100644 --- a/gost.c +++ b/gost.c @@ -1116,6 +1116,8 @@ int scanhash_gostd(int thr_id, uint32_t *pdata, const uint32_t *ptarget, sph_gost256 (hash, digest, 64); if (swab32(hash[0]) <= Htarg) { + if (!Htarg && swab32(hash[1]) > ptarget[6]) // if difficulty >= 1 + continue; pdata[19] = swab32 (data[19]); *hashes_done = n - first_nonce + 1; return 1;