Browse Source

Bugfix: pool_actively_desired: Detect failover-only conditions for loadbalance and balance strategies

Luke Dashjr 11 years ago
parent
commit
65fd9af744
1 changed files with 3 additions and 1 deletions
  1. 3 1
      miner.c

+ 3 - 1
miner.c

@@ -4781,7 +4781,9 @@ bool pool_actively_desired(const struct pool * const pool, const struct pool *cp
 {
 	if (pool->enabled != POOL_ENABLED)
 		return false;
-	if (pool_strategy == POOL_LOADBALANCE || pool_strategy == POOL_BALANCE)
+	if (pool_strategy == POOL_LOADBALANCE && pool->quota)
+		return true;
+	if (pool_strategy == POOL_BALANCE && !pool->failover_only)
 		return true;
 	if (!cp)
 		cp = current_pool();