@ -3350,6 +3350,17 @@ static void _copy_work(struct work *work, const struct work *base_work, int noff
@@ -3350,6 +3350,17 @@ static void _copy_work(struct work *work, const struct work *base_work, int noff
work->coinbase=strdup(base_work->coinbase);
}
voidset_work_ntime(structwork*work,intntime)
{
uint32_t*work_ntime=(uint32_t*)(work->data+68);
*work_ntime=htobe32(ntime);
if(work->ntime){
free(work->ntime);
work->ntime=bin2hex((unsignedchar*)work_ntime,4);
}
}
/* Generates a copy of an existing work struct, creating fresh heap allocations