|
|
@ -20,7 +20,7 @@ |
|
|
|
#include "fpgautils.h" |
|
|
|
#include "fpgautils.h" |
|
|
|
#include "miner.h" |
|
|
|
#include "miner.h" |
|
|
|
|
|
|
|
|
|
|
|
#define BITFORCE_SLEEP_MS 3000 |
|
|
|
#define BITFORCE_SLEEP_MS 666 |
|
|
|
#define BITFORCE_TIMEOUT_MS 7000 |
|
|
|
#define BITFORCE_TIMEOUT_MS 7000 |
|
|
|
#define BITFORCE_LONG_TIMEOUT_MS 15000 |
|
|
|
#define BITFORCE_LONG_TIMEOUT_MS 15000 |
|
|
|
#define BITFORCE_CHECK_INTERVAL_MS 10 |
|
|
|
#define BITFORCE_CHECK_INTERVAL_MS 10 |
|
|
@ -278,6 +278,7 @@ re_send: |
|
|
|
if (bitforce->nonce_range) { |
|
|
|
if (bitforce->nonce_range) { |
|
|
|
applog(LOG_DEBUG, "BFL%i: Disabling nonce range support", bitforce->device_id); |
|
|
|
applog(LOG_DEBUG, "BFL%i: Disabling nonce range support", bitforce->device_id); |
|
|
|
bitforce->nonce_range = false; |
|
|
|
bitforce->nonce_range = false; |
|
|
|
|
|
|
|
bitforce->sleep_ms *= 5; |
|
|
|
goto re_send; |
|
|
|
goto re_send; |
|
|
|
} |
|
|
|
} |
|
|
|
applog(LOG_ERR, "BFL%i: Error: Send work reports: %s", bitforce->device_id, pdevbuf); |
|
|
|
applog(LOG_ERR, "BFL%i: Error: Send work reports: %s", bitforce->device_id, pdevbuf); |
|
|
@ -404,6 +405,7 @@ static uint64_t bitforce_get_result(struct thr_info *thr, struct work *work) |
|
|
|
applog(LOG_INFO, "BFL%i: Disabling broken nonce range support", bitforce->device_id); |
|
|
|
applog(LOG_INFO, "BFL%i: Disabling broken nonce range support", bitforce->device_id); |
|
|
|
bitforce->nonce_range = false; |
|
|
|
bitforce->nonce_range = false; |
|
|
|
work->blk.nonce = 0xffffffff; |
|
|
|
work->blk.nonce = 0xffffffff; |
|
|
|
|
|
|
|
bitforce->sleep_ms *= 5; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
submit_nonce(thr, work, nonce); |
|
|
|
submit_nonce(thr, work, nonce); |
|
|
|