Commit ac0c813f9d3216c2efadc1e9335b45052a070c6f

Con Kolivas 2012-10-03T10:33:11

Bit error in target calculation for stratum.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cgminer.c b/cgminer.c
index 6891b24..b1c2867 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -4559,7 +4559,7 @@ static void gen_stratum_work(struct pool *pool, struct work *work)
 		int byte = j / 8;
 		int bit = j % 8;
 
-		data8[byte] &= ~(8 >> bit);
+		data8[byte] &= ~(128 >> bit);
 	}
 	swab256(target, rtarget);
 	if (opt_debug) {