Commit b98f699b126705b32b45bba14bc3077ed8155042

Con Kolivas 2014-01-09T14:19:46

Avoid double handling bswap of the nonce value in nanofury

diff --git a/driver-bitfury.c b/driver-bitfury.c
index 83b15bd..e9db659 100644
--- a/driver-bitfury.c
+++ b/driver-bitfury.c
@@ -943,7 +943,7 @@ static int64_t nf1_scan(struct thr_info *thr, struct cgpu_info *bitfury,
 		i = info->results_n;
 		for (j = i - 1; j >= 0; j--) {
 			if (owork)
-				submit_nonce(thr, owork, bswap_32(res[j]));
+				submit_nonce(thr, owork, res[j]);
 		}
 		info->owork = info->work;
 		info->work = NULL;
diff --git a/libbitfury.c b/libbitfury.c
index a8abe00..78f45a6 100644
--- a/libbitfury.c
+++ b/libbitfury.c
@@ -378,7 +378,7 @@ bool libbitfury_sendHashData(struct cgpu_info *bf)
 					found = true;
 out_found:
 				if (found)
-					results[results_num++] = bswap_32(nonce);
+					results[results_num++] = nonce;
 			}
 		}
 		info->results_n = results_num;