|
@@ -188,6 +188,7 @@ static uint64_t ztex_scanhash(struct thr_info *thr, struct work *work,
|
|
|
memset(lastnonce, 0, sizeof(uint32_t)*ztex->numNonces);
|
|
memset(lastnonce, 0, sizeof(uint32_t)*ztex->numNonces);
|
|
|
|
|
|
|
|
backlog_max = ztex->numNonces * (1 + ztex->extraSolutions);
|
|
backlog_max = ztex->numNonces * (1 + ztex->extraSolutions);
|
|
|
|
|
+ backlog_max *= 2;
|
|
|
backlog = malloc(sizeof(uint32_t) * backlog_max);
|
|
backlog = malloc(sizeof(uint32_t) * backlog_max);
|
|
|
if (backlog == NULL) {
|
|
if (backlog == NULL) {
|
|
|
applog(LOG_ERR, "%s: failed to allocate backlog[%d]", ztex->repr, backlog_max);
|
|
applog(LOG_ERR, "%s: failed to allocate backlog[%d]", ztex->repr, backlog_max);
|