Commit 1aacfe52795a70a4357bce09625fafc17ebac7ad

Con Kolivas 2012-07-13T20:38:26

Don't check postcalc nonce with sha256 in scrypt.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/findnonce.c b/findnonce.c
index 4e40de5..17c4189 100644
--- a/findnonce.c
+++ b/findnonce.c
@@ -232,8 +232,13 @@ static void *postcalc_hash(void *userdata)
 	pthread_detach(pthread_self());
 
 	for (entry = 0; entry < FOUND; entry++) {
-		if (pcd->res[entry])
-			send_nonce(pcd, pcd->res[entry]);
+		if (pcd->res[entry]) {
+#ifdef USE_SCRYPT
+			if (opt_scrypt)
+				submit_nonce(thr, work, entry);
+			else
+#endif
+				send_nonce(pcd, pcd->res[entry]);
 		nonces++;
 	}