Browse Source

Check share target diff for best_share to be calculated when solo mining.

Con Kolivas 13 years ago
parent
commit
1eeecd9734
1 changed files with 6 additions and 0 deletions
  1. 6 0
      miner.c

+ 6 - 0
miner.c

@@ -6253,6 +6253,12 @@ bool submit_nonce(struct thr_info *thr, struct work *work, uint32_t nonce)
 		}
 		case TNR_HIGH:
 			// Share above target, normal
+			/* 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);
 			return true;
 		case TNR_GOOD:
 			break;