From b3a50dd465d9e82546ef03a624d24fdd50fb70b0 Mon Sep 17 00:00:00 2001 From: Kano Date: Fri, 4 May 2012 10:35:45 +1000 Subject: [PATCH] Icarus - correct MH/s and U: with work restart set at 8 seconds --- driver-icarus.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/driver-icarus.c b/driver-icarus.c index 7a7ec494..47b0b164 100644 --- a/driver-icarus.c +++ b/driver-icarus.c @@ -72,12 +72,8 @@ // 2 x 11.1 / (5.26 x 10^-9) //#define ESTIMATE_HASHES 0xFB90365E -// This is the 8s value but causes hash rate loss -//#define ESTIMATE_HASHES 0xB54E9147 - -// TODO: determine why returning any other value when no nonce is found -// causes hash rate loss -#define ESTIMATE_HASHES 0xffffffff +// This is the 8s value +#define ESTIMATE_HASHES 0xB54E9147 struct device_api icarus_api; @@ -353,6 +349,7 @@ static uint64_t icarus_scanhash(struct thr_info *thr, struct work *work, if (opt_debug) gettimeofday(&tv_finish, NULL); + work->blk.nonce = 0xffffffff; memcpy((char *)&nonce, nonce_bin, sizeof(nonce_bin)); // aborted before becoming idle, get new work @@ -369,7 +366,6 @@ static uint64_t icarus_scanhash(struct thr_info *thr, struct work *work, nonce = swab32(nonce); #endif - work->blk.nonce = 0xffffffff; submit_nonce(thr, work, nonce); if (opt_debug) {