Skip to content
This repository has been archived by the owner on Jan 9, 2021. It is now read-only.

Commit

Permalink
Handle decred new stake version field
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbandi committed Apr 23, 2017
1 parent c72853f commit 47938c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sgminer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 47938c3

Please sign in to comment.