mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-09 13:34:18 +00:00
Fix for random HW errors
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!
This commit is contained in:
parent
8a6168fa4b
commit
611b370255
@ -6833,8 +6833,8 @@ bool test_nonce(struct work *work, uint32_t nonce)
|
|||||||
|
|
||||||
applog(LOG_DEBUG, "test_nonce() algorithm = %s", work->pool->algorithm.name);
|
applog(LOG_DEBUG, "test_nonce() algorithm = %s", work->pool->algorithm.name);
|
||||||
|
|
||||||
// for Neoscrypt, the diff1targe value is in work->target
|
// for Neoscrypt, the diff1targ value is in work->target
|
||||||
if ((work->pool->algorithm.name, "neoscrypt")) {
|
if (!safe_cmp(work->pool->algorithm.name, "neoscrypt")) {
|
||||||
diff1targ = ((uint32_t *)work->target)[7];
|
diff1targ = ((uint32_t *)work->target)[7];
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user