Browse Source

If the current pool lacks its own block change detection, keep the pool used for that connected

Luke Dashjr 11 years ago
parent
commit
58bd1cf3b5
1 changed files with 4 additions and 0 deletions
  1. 4 0
      miner.c

+ 4 - 0
miner.c

@@ -8406,6 +8406,10 @@ static bool cnx_needed(struct pool *pool)
 	/* We've run out of work, bring anything back to life. */
 	/* We've run out of work, bring anything back to life. */
 	if (no_work)
 	if (no_work)
 		return true;
 		return true;
+	
+	// If the current pool lacks its own block change detection, see if we are needed for that
+	if (pool_active_lp_pool(cp) == pool)
+		return true;
 
 
 	return false;
 	return false;
 }
 }