mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 04:24:19 +00:00
Handle decred new stake version field
This commit is contained in:
parent
c72853fa40
commit
47938c38b2
@ -6195,6 +6195,8 @@ static void gen_stratum_work(struct pool *pool, struct work *work)
|
||||
((uint32_t *)work->data)[i] = 0;
|
||||
memcpy(work->data + 144, pool->nonce1bin, nonce2_offset);
|
||||
memcpy(work->data + 144 + nonce2_offset, &nonce2le, pool->n2size);
|
||||
size_t extranonce_len = MAX((int)pool->swork.cb_len - pool->nonce2_offset - pool->n2size, 0);
|
||||
memcpy(work->data + 180 - extranonce_len, pool->coinbase + pool->nonce2_offset + pool->n2size, extranonce_len);
|
||||
}
|
||||
else if (pool->algorithm.type == ALGO_SIA) {
|
||||
size_t nonce2_offset = MIN(pool->n1_len, 4);
|
||||
|
Loading…
x
Reference in New Issue
Block a user