diff options
| author | bitflash-maintainer <noreply@bitflash.invalid> | 2026-09-02 17:13:06 +0000 |
|---|---|---|
| committer | bitflash-maintainer <noreply@bitflash.invalid> | 2026-09-02 17:13:06 +0000 |
| commit | ca03f8e9416837acfac825f02a6c592e07e0c4df (patch) | |
| tree | 209130adc821e853d389f10db25491df114d063f /src/imgui | |
| parent | 738d5b411bab4e13e176a11f8ae6e6f70337381e (diff) | |
worker: count a session as productive only if the pool sent a job
PoolParticipantMiner returned true from its normal cleanup path whether or
not the pool had ever sent work, so a pool that completed the tunnel and
then dropped was indistinguishable from a healthy one. The caller reset
nRetrySecs to 10 on every such "session", pinning the reconnect at a flat
10s and defeating the backoff in precisely the case it was added for. It
cleared nFailingSince as well, so the "failing for N minutes" line never
printed either -- the worker went back to idling silently.
Return true only once at least one well-formed mining.notify has arrived.
The existing early returns are unaffected: they already mean "no session",
which stays the right answer for any path that leaves the worker without
work, a failed hash-thread spawn included.
Diffstat (limited to 'src/imgui')
0 files changed, 0 insertions, 0 deletions