Commit 69dd5affe3ad8ddf683c3c95055b10ace102fb57

Con Kolivas 2012-12-24T10:45:57

Scrypt code does not enter the hashtest function.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/cgminer.c b/cgminer.c
index f7591e8..10a5095 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -5162,10 +5162,7 @@ static bool hashtest(struct thr_info *thr, struct work *work)
 		applog(LOG_INFO, "Share below target");
 		/* Check the diff of the share, even if it didn't reach the
 		 * target, just to set the best share value if it's higher. */
-		if (opt_scrypt)
-			scrypt_diff(work);
-		else
-			share_diff(work);
+		share_diff(work);
 	}
 
 	return test;