mirror of
https://github.com/GOSTSec/sgminer
synced 2025-08-26 13:52:02 +00:00
Swab, don't just swap the bytes in the GBT target.
This commit is contained in:
parent
275bb9c05e
commit
0314081157
@ -1569,7 +1569,7 @@ static bool gbt_decode(struct pool *pool, json_t *res_val)
|
|||||||
swap256(pool->previousblockhash, hash_swap);
|
swap256(pool->previousblockhash, hash_swap);
|
||||||
|
|
||||||
hex2bin(hash_swap, target, 32);
|
hex2bin(hash_swap, target, 32);
|
||||||
swap256(pool->gbt_target, hash_swap);
|
swab256(pool->gbt_target, hash_swap);
|
||||||
|
|
||||||
pool->gbt_expires = expires;
|
pool->gbt_expires = expires;
|
||||||
pool->gbt_version = htobe32(version);
|
pool->gbt_version = htobe32(version);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user