Skip to content

Commit

Permalink
support difficutly >= 1
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed May 4, 2017
1 parent 17fce66 commit 932bd48
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gost.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 932bd48

Please sign in to comment.