|
|
|
@ -5612,7 +5612,7 @@ static void gen_stratum_work(struct pool *pool, struct work *work)
@@ -5612,7 +5612,7 @@ static void gen_stratum_work(struct pool *pool, struct work *work)
|
|
|
|
|
if (unlikely(!coinbase)) |
|
|
|
|
quit(1, "Failed to calloc coinbase in gen_stratum_work"); |
|
|
|
|
memcpy(coinbase, pool->swork.cb1, pool->swork.cb1_len); |
|
|
|
|
hex2bin(coinbase + pool->swork.cb1_len, pool->nonce1, pool->n1_len); |
|
|
|
|
memcpy(coinbase + pool->swork.cb1_len, pool->nonce1bin, pool->n1_len); |
|
|
|
|
hex2bin(coinbase + pool->swork.cb1_len + pool->n1_len, work->nonce2, pool->n2size); |
|
|
|
|
memcpy(coinbase + pool->swork.cb1_len + pool->n1_len + pool->n2size, pool->swork.cb2, pool->swork.cb2_len); |
|
|
|
|
|
|
|
|
|