Browse Source

Bugfix: cairnsmore: Fix invalid share detection on LE

Luke Dashjr 13 years ago
parent
commit
65db9c567f
1 changed files with 1 additions and 2 deletions
  1. 1 2
      driver-icarus.c

+ 1 - 2
driver-icarus.c

@@ -770,6 +770,7 @@ static int64_t icarus_scanhash(struct thr_info *thr, struct work *work,
 #endif
 
 	memcpy(&nonce, nonce_bin, sizeof(nonce_bin));
+	nonce = be32toh(nonce);
 
 	// Handle dynamic clocking for "subclass" devices
 	// This runs before sending next job, in case it isn't supported
@@ -835,8 +836,6 @@ static int64_t icarus_scanhash(struct thr_info *thr, struct work *work,
 		return estimate_hashes;
 	}
 
-	nonce = be32toh(nonce);
-
 	submit_nonce(thr, &state->last_work, nonce);
 	memcpy(&state->last_work, work, sizeof(state->last_work));