mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-05 11:34:16 +00:00
Work around pools that advertise very low expire= time inappropriately as this leads to many false positives for stale shares detected.
This commit is contained in:
parent
028597d37d
commit
21a23a45d7
@ -2167,7 +2167,10 @@ static bool stale_work(struct work *work, bool share)
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (share) {
|
if (share) {
|
||||||
if (work->rolltime)
|
/* Technically the rolltime should be correct but some pools
|
||||||
|
* advertise a broken expire= that is lower than a meaningful
|
||||||
|
* scantime */
|
||||||
|
if (work->rolltime > opt_scantime)
|
||||||
work_expiry = work->rolltime;
|
work_expiry = work->rolltime;
|
||||||
else
|
else
|
||||||
work_expiry = opt_expiry;
|
work_expiry = opt_expiry;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user