mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 20:44:19 +00:00
Avoid one more hex2bin in gen stratum work.
This commit is contained in:
parent
11bcf2b3fb
commit
0379123bc1
@ -5593,9 +5593,9 @@ static void gen_stratum_work(struct pool *pool, struct work *work)
|
||||
|
||||
cg_wlock(&pool->data_lock);
|
||||
|
||||
/* Generate coinbase */
|
||||
/* Update coinbase */
|
||||
memcpy(pool->coinbase + pool->nonce2_offset, &pool->nonce2, pool->n2size);
|
||||
work->nonce2 = bin2hex((const unsigned char *)&pool->nonce2, pool->n2size);
|
||||
hex2bin(pool->coinbase + pool->nonce2_offset, work->nonce2, pool->n2size);
|
||||
pool->nonce2++;
|
||||
|
||||
/* Downgrade to a read lock to read off the pool variables */
|
||||
|
Loading…
x
Reference in New Issue
Block a user