mirror of
https://github.com/GOSTSec/sgminer
synced 2025-03-09 20:21:01 +00:00
Use flip32 function instead of open coding it in gen_stratum_work.
This commit is contained in:
parent
62a1403b3b
commit
f50ae46850
@ -5431,8 +5431,7 @@ static void gen_stratum_work(struct pool *pool, struct work *work)
|
|||||||
}
|
}
|
||||||
data32 = (uint32_t *)merkle_sha;
|
data32 = (uint32_t *)merkle_sha;
|
||||||
swap32 = (uint32_t *)merkle_root;
|
swap32 = (uint32_t *)merkle_root;
|
||||||
for (i = 0; i < 32 / 4; i++)
|
flip32(swap32, data32);
|
||||||
swap32[i] = swab32(data32[i]);
|
|
||||||
merkle_hash = bin2hex((const unsigned char *)merkle_root, 32);
|
merkle_hash = bin2hex((const unsigned char *)merkle_root, 32);
|
||||||
|
|
||||||
header = calloc(pool->swork.header_len, 1);
|
header = calloc(pool->swork.header_len, 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user