|
|
@@ -2763,7 +2763,7 @@ static bool stale_work(struct work *work, bool share)
|
|
|
} else {
|
|
|
/* If this work isn't for the latest Bitcoin block, it's stale */
|
|
|
/* But only care about the current pool if failover-only */
|
|
|
- if (block_id != (opt_fail_only ? pool->block_id : current_block_id))
|
|
|
+ if (block_id != ((enabled_pools <= 1 || opt_fail_only) ? pool->block_id : current_block_id))
|
|
|
{
|
|
|
applog(LOG_DEBUG, "Work stale due to block mismatch (%08lx != %d ? %08lx : %08lx)", (long)block_id, (int)opt_fail_only, (long)pool->block_id, (long)current_block_id);
|
|
|
return true;
|