mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-23 13:04:29 +00:00
Revert "Increase the getwork delay factored in to determine if work vs share is stale to avoid too tight timing."
This reverts commit d8de1bbc5baa416148f50938cfde28a5261cb0e1. Wrong fix.
This commit is contained in:
parent
c7eb9f3761
commit
6e80b63bb8
@ -2175,7 +2175,7 @@ static bool stale_work(struct work *work, bool share)
|
|||||||
pool = work->pool;
|
pool = work->pool;
|
||||||
/* Factor in the average getwork delay of this pool, rounding it up to
|
/* Factor in the average getwork delay of this pool, rounding it up to
|
||||||
* the nearest second */
|
* the nearest second */
|
||||||
getwork_delay = (pool->cgminer_pool_stats.getwork_wait_rolling + 1) * 5;
|
getwork_delay = pool->cgminer_pool_stats.getwork_wait_rolling * 5 + 1;
|
||||||
if (!share) {
|
if (!share) {
|
||||||
work_expiry -= getwork_delay;
|
work_expiry -= getwork_delay;
|
||||||
if (unlikely(work_expiry < 5))
|
if (unlikely(work_expiry < 5))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user