Commit 8fd3bf74df6513fd43c78ce120b3c0806c03d9dd

Con Kolivas 2012-07-13T20:40:37

Build fix for opt scrypt.

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