Skip to content
This repository has been archived by the owner on Jan 9, 2021. It is now read-only.

Commit

Permalink
XMR bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NaN-git committed Jan 17, 2017
1 parent 19c9715 commit b296789
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sgminer.c
Original file line number Diff line number Diff line change
Expand Up @@ -7582,7 +7582,7 @@ bool test_nonce(struct work *work, uint32_t nonce)
uint64_t target = *(uint64_t*) (work->device_target + 24);
return (bswap_64(*(uint64_t*) work->hash) <= target);
}
else if (work->pool->algorithm.type = ALGO_CRYPTONIGHT) {
else if (work->pool->algorithm.type == ALGO_CRYPTONIGHT) {
return (((uint32_t *)work->hash)[7] <= work->XMRTarget);
}
else {
Expand Down

0 comments on commit b296789

Please sign in to comment.