Skip to content

Commit

Permalink
Fix for random HW errors
Browse files Browse the repository at this point in the history
A typo when checking the algorithm used was causing the diff1targ value not to evaluate properly in test_nonce(). This caused the test to fail and increase HW errors. Thanks to Zuikkis for pointing that out!
  • Loading branch information
ystarnaud authored and troky committed Nov 19, 2014
1 parent 8a6168f commit 611b370
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sgminer.c
Original file line number Diff line number Diff line change
Expand Up @@ -6833,8 +6833,8 @@ bool test_nonce(struct work *work, uint32_t nonce)

applog(LOG_DEBUG, "test_nonce() algorithm = %s", work->pool->algorithm.name);

// for Neoscrypt, the diff1targe value is in work->target
if ((work->pool->algorithm.name, "neoscrypt")) {
// for Neoscrypt, the diff1targ value is in work->target
if (!safe_cmp(work->pool->algorithm.name, "neoscrypt")) {
diff1targ = ((uint32_t *)work->target)[7];
}
else {
Expand Down

0 comments on commit 611b370

Please sign in to comment.