mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 20:44:19 +00:00
Adjust the binary ntime data in submit_noffset_nonce even when there is no hex ntime string for eg. gbt.
This commit is contained in:
parent
316e6d61c9
commit
3ffc3f1d78
@ -3583,6 +3583,12 @@ static void _copy_work(struct work *work, const struct work *base_work, int noff
|
||||
work->ntime = offset_ntime(base_work->ntime, noffset);
|
||||
} else
|
||||
work->ntime = strdup(base_work->ntime);
|
||||
} else if (noffset) {
|
||||
uint32_t *work_ntime = (uint32_t *)(work->data + 68);
|
||||
uint32_t ntime = be32toh(*work_ntime);
|
||||
|
||||
ntime += noffset;
|
||||
*work_ntime = htobe32(ntime);
|
||||
}
|
||||
if (base_work->coinbase)
|
||||
work->coinbase = strdup(base_work->coinbase);
|
||||
|
Loading…
x
Reference in New Issue
Block a user