1
0
mirror of https://github.com/GOSTSec/cpuminer-gostd synced 2025-01-30 08:24:29 +00:00

support difficutly >= 1

This commit is contained in:
orignal 2017-05-04 12:56:15 -04:00
parent 17fce6613a
commit 932bd48dd2

2
gost.c
View File

@ -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;