mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-05 19:44:21 +00:00
Difficulty should be unconditionally byteswapped, not swapped to big endian.
This commit is contained in:
parent
9a9613b6ee
commit
7014bd6b8b
@ -3655,7 +3655,7 @@ static void set_blockdiff(const struct work *work)
|
|||||||
data64 = (uint64_t *)(rhash + 2);
|
data64 = (uint64_t *)(rhash + 2);
|
||||||
else
|
else
|
||||||
data64 = (uint64_t *)(rhash + 4);
|
data64 = (uint64_t *)(rhash + 4);
|
||||||
d64 = be64toh(*data64);
|
d64 = bswap_64(*data64);
|
||||||
if (unlikely(!d64))
|
if (unlikely(!d64))
|
||||||
d64 = 1;
|
d64 = 1;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user