Browse Source

Avoid dereference crash on startup with instantly connecting miners.

master
Con Kolivas 8 years ago
parent
commit
c7d8b774db
  1. 4
      src/stratifier.c

4
src/stratifier.c

@ -4341,6 +4341,10 @@ static bool new_enonce1(ckpool_t *ckp, sdata_t *ckp_sdata, sdata_t *sdata, strat
}
}
/* Still initialising */
if (unlikely(!sdata->current_workbase))
return false;
/* instance_lock protects enonce1_64. Incrementing a little endian 64bit
* number ensures that no matter how many of the bits we take from the
* left depending on nonce2 length, we'll always get a changing value

Loading…
Cancel
Save