Skip to content

Commit

Permalink
fix: fix the returned value of finding nonce value
Browse files Browse the repository at this point in the history
If the thread finds the legal nonce value,
it should always return a positive or zero value.
Otherwise, it should always return a negative value.

Close DLTcollab#108.
  • Loading branch information
marktwtn committed Feb 22, 2019
1 parent 5e500f0 commit ca23b1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pow_c.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static long long int loop_cpu(uint64_t *lmid,
return i * 64;
}
}
return -i * 64 + 1;
return -i * 64 - 1;
}

static void para(int8_t in[], uint64_t l[], uint64_t h[])
Expand Down

0 comments on commit ca23b1d

Please sign in to comment.