upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/db.cpp
diff options
context:
space:
mode:
authorbitflash-maintainer <noreply@bitflash.invalid>2026-09-02 17:13:06 +0000
committerbitflash-maintainer <noreply@bitflash.invalid>2026-09-02 17:13:06 +0000
commitca03f8e9416837acfac825f02a6c592e07e0c4df (patch)
tree209130adc821e853d389f10db25491df114d063f /src/db.cpp
parent738d5b411bab4e13e176a11f8ae6e6f70337381e (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/db.cpp')
0 files changed, 0 insertions, 0 deletions