Browse Source

support difficutly >= 1

windows
orignal 8 years ago
parent
commit
932bd48dd2
  1. 2
      gost.c

2
gost.c

@ -1116,6 +1116,8 @@ int scanhash_gostd(int thr_id, uint32_t *pdata, const uint32_t *ptarget, @@ -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;

Loading…
Cancel
Save