Browse Source

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

nfactor-troky
Con Kolivas 12 years ago
parent
commit
7014bd6b8b
  1. 2
      cgminer.c

2
cgminer.c

@ -3655,7 +3655,7 @@ static void set_blockdiff(const struct work *work) @@ -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;

Loading…
Cancel
Save