Browse Source

Fix jobid being wrong on proxy reconnect

master
Con Kolivas 11 years ago
parent
commit
56d6649646
  1. 3
      src/stratifier.c

3
src/stratifier.c

@ -377,7 +377,8 @@ static void add_base(ckpool_t *ckp, workbase_t *wb, bool *new_block)
wb->logdir = ckalloc(len); wb->logdir = ckalloc(len);
ck_wlock(&workbase_lock); ck_wlock(&workbase_lock);
wb->id = workbase_id++; if (!ckp->proxy)
wb->id = workbase_id++;
if (strncmp(wb->prevhash, lasthash, 64)) { if (strncmp(wb->prevhash, lasthash, 64)) {
*new_block = true; *new_block = true;

Loading…
Cancel
Save