Browse Source

Merge commit 'f4d305a' into cg_merges_20121203

Conflicts:
	miner.c
Luke Dashjr 13 years ago
parent
commit
6b24700b69
1 changed files with 0 additions and 15 deletions
  1. 0 15
      miner.c

+ 0 - 15
miner.c

@@ -6240,21 +6240,6 @@ enum test_nonce2_result hashtest2(struct work *work, bool checktarget)
 
 	memcpy((void*)work->hash, hash2, 32);
 
-	if (work->stratum) {
-		double diff;
-
-		mutex_lock(&pool->pool_lock);
-		diff = pool->swork.diff;
-		mutex_unlock(&pool->pool_lock);
-
-		/* Retarget share only if pool diff has dropped since we
-		 * generated this work */
-		if (unlikely(work->sdiff > diff)) {
-			applog(LOG_DEBUG, "Share needs retargetting to match pool");
-			set_work_target(work, diff);
-		}
-	}
-
 	if (!fulltest(work->hash, work->target))
 		return TNR_HIGH;