mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 09:27:25 +00:00
Update job_core.cpp
This commit is contained in:
parent
94d8a35a1d
commit
e38be4128e
1 changed files with 85 additions and 80 deletions
|
@ -114,19 +114,24 @@ void job_unlock_clients(YAAMP_JOB *job)
|
|||
|
||||
bool job_can_mine(YAAMP_JOB *job)
|
||||
{
|
||||
if(job->deleted) return false;
|
||||
|
||||
if(job->remote)
|
||||
return remote_can_mine(job->remote);
|
||||
|
||||
else if(job->coind)
|
||||
return coind_can_mine(job->coind);
|
||||
|
||||
if(job->deleted) {
|
||||
debuglog("Job was deleted\n");
|
||||
return false;
|
||||
}
|
||||
if(job->remote) {
|
||||
debuglog("job is remote?\n");
|
||||
return remote_can_mine(job->remote);
|
||||
}
|
||||
else if(job->coind) {
|
||||
debuglog("job is coind\n");
|
||||
return coind_can_mine(job->coind);
|
||||
} else {
|
||||
debuglog("returning false for job_can_mine\n");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue