Browse Source

stratum: check if job was read

2upstream
Tanguy Pruvot 10 years ago
parent
commit
cc296a0618
  1. 5
      cpu-miner.c

5
cpu-miner.c

@ -789,6 +789,11 @@ static void stratum_gen_work(struct stratum_ctx *sctx, struct work *work)
unsigned char merkle_root[64]; unsigned char merkle_root[64];
int i; int i;
if (!sctx->job.job_id) {
/* job not yet retrieved */
return;
}
pthread_mutex_lock(&sctx->work_lock); pthread_mutex_lock(&sctx->work_lock);
// store the job ntime as high part of jobid // store the job ntime as high part of jobid

Loading…
Cancel
Save