mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-05 03:24:26 +00:00
Make need connection return true if a pool is idle.
This commit is contained in:
parent
777f0573c3
commit
b86aa20bf6
@ -4732,10 +4732,18 @@ static bool cnx_needed(struct pool *pool)
|
|||||||
{
|
{
|
||||||
struct pool *cp;
|
struct pool *cp;
|
||||||
|
|
||||||
|
/* Balance strategies need all pools online */
|
||||||
if (pool_strategy == POOL_BALANCE)
|
if (pool_strategy == POOL_BALANCE)
|
||||||
return true;
|
return true;
|
||||||
if (pool_strategy == POOL_LOADBALANCE)
|
if (pool_strategy == POOL_LOADBALANCE)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
/* Idle pool needs something to kick it alive again */
|
||||||
|
if (pool->idle)
|
||||||
|
return true;
|
||||||
|
|
||||||
|
/* Getwork pools without opt_fail_only need backup pools up to be able
|
||||||
|
* to leak shares */
|
||||||
cp = current_pool();
|
cp = current_pool();
|
||||||
if (cp == pool)
|
if (cp == pool)
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user