|
|
@@ -48,7 +48,7 @@ void release_work2d_(uint32_t xnonce1)
|
|
|
work2d_reserved[xnonce1] = false;
|
|
|
}
|
|
|
|
|
|
-void work2d_gen_dummy_work(struct work * const work, struct stratum_work * const swork, const struct timeval * const tvp_prepared, const char * const extranonce2, const uint32_t xnonce1)
|
|
|
+void work2d_gen_dummy_work(struct work * const work, struct stratum_work * const swork, const struct timeval * const tvp_prepared, const void * const xnonce2, const uint32_t xnonce1)
|
|
|
{
|
|
|
uint8_t *p, *s;
|
|
|
|
|
|
@@ -60,8 +60,8 @@ void work2d_gen_dummy_work(struct work * const work, struct stratum_work * const
|
|
|
bytes_resize(&work->nonce2, swork->n2size);
|
|
|
s = bytes_buf(&work->nonce2);
|
|
|
p = &s[swork->n2size - work2d_xnonce2sz];
|
|
|
- if (extranonce2)
|
|
|
- hex2bin(p, extranonce2, work2d_xnonce2sz);
|
|
|
+ if (xnonce2)
|
|
|
+ memcpy(p, xnonce2, work2d_xnonce2sz);
|
|
|
#ifndef __OPTIMIZE__
|
|
|
else
|
|
|
memset(p, '\0', work2d_xnonce2sz);
|