mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-10 23:08:07 +00:00
Disable nonce range support in BFL when broken support is detected.
This commit is contained in:
parent
96183bbdf4
commit
72777f1f38
@ -390,6 +390,12 @@ static uint64_t bitforce_get_result(struct thr_info *thr, struct work *work)
|
||||
#ifndef __BIG_ENDIAN__
|
||||
nonce = swab32(nonce);
|
||||
#endif
|
||||
if (unlikely(bitforce->nonce_range && (nonce >= work->blk.nonce ||
|
||||
(work->blk.nonce > 0 && nonce < work->blk.nonce - bitforce->nonces - 1)))) {
|
||||
applog(LOG_DEBUG, "BFL%i: Disabling broken nonce range support", bitforce->device_id);
|
||||
bitforce->nonce_range = false;
|
||||
}
|
||||
|
||||
submit_nonce(thr, work, nonce);
|
||||
if (pnoncebuf[8] != ',')
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user