|
|
@@ -2189,7 +2189,8 @@ static bool stale_work(struct work *work, bool share)
|
|
|
work_expiry = opt_expiry;
|
|
|
} else {
|
|
|
/* If this work isn't for the latest Bitcoin block, it's stale */
|
|
|
- if (current_block_id != block_id)
|
|
|
+ /* But only care about the current pool if failover-only */
|
|
|
+ if (block_id != (opt_fail_only ? pool->block_id : current_block_id))
|
|
|
return true;
|
|
|
|
|
|
/* If the pool has asked us to restart since this work, it's stale */
|