Browse Source

Bit error in target calculation for stratum.

Con Kolivas 13 years ago
parent
commit
ac0c813f9d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cgminer.c

+ 1 - 1
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) {