Browse Source

Regenerate the hash before checking the share diff in hashtest().

Con Kolivas 12 years ago
parent
commit
9a76db8db9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      cgminer.c

+ 1 - 0
cgminer.c

@@ -5489,6 +5489,7 @@ static int 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. */
+		regen_hash(work);
 		share_diff(work);
 		return 0;
 	}