1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-28 15:34:16 +00:00

Difficulty should be unconditionally byteswapped, not swapped to big endian.

This commit is contained in:
Con Kolivas 2013-06-17 21:20:36 +10:00
parent 9a9613b6ee
commit 7014bd6b8b

View File

@ -3655,7 +3655,7 @@ static void set_blockdiff(const struct work *work)
data64 = (uint64_t *)(rhash + 2);
else
data64 = (uint64_t *)(rhash + 4);
d64 = be64toh(*data64);
d64 = bswap_64(*data64);
if (unlikely(!d64))
d64 = 1;