Browse Source

Merge branch 'bugfix_mm_nonce_endian' into bfgminer

Conflicts:
	driver-modminer.c
Luke Dashjr 13 years ago
parent
commit
568a2c2ae4
1 changed files with 1 additions and 0 deletions
  1. 1 0
      driver-modminer.c

+ 1 - 0
driver-modminer.c

@@ -625,6 +625,7 @@ modminer_process_results(struct thr_info*thr)
 			safebailout();
 			safebailout();
 		mutex_unlock(&modminer->device_mutex);
 		mutex_unlock(&modminer->device_mutex);
 		if (memcmp(&nonce, "\xff\xff\xff\xff", 4)) {
 		if (memcmp(&nonce, "\xff\xff\xff\xff", 4)) {
+			nonce = le32toh(nonce);
 			bad = !test_nonce(work, nonce, false);
 			bad = !test_nonce(work, nonce, false);
 			++immediate_nonces;
 			++immediate_nonces;
 			if (!bad)
 			if (!bad)