mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 12:34:27 +00:00
core: Display difficulty in cgminer style, not true network difficulty (for consistency within the interface).
This regression was introduced by commit 3f6b9d679621bfd88ce1e435dc265fa0a4d78c79.
This commit is contained in:
parent
08727c1a57
commit
cb806d2437
@ -3758,7 +3758,7 @@ static void set_blockdiff(const struct work *work)
|
||||
uint8_t pow = work->data[72];
|
||||
int powdiff = (8 * (0x1d - 3)) - (8 * (pow - 3));
|
||||
uint32_t diff32 = be32toh(*((uint32_t *)(work->data + 72))) & 0x00FFFFFF;
|
||||
double numerator = 0xFFFFULL << powdiff;
|
||||
double numerator = 0xFFFFFFFFULL << powdiff;
|
||||
double ddiff = numerator / (double)diff32;
|
||||
|
||||
if (unlikely(current_diff != ddiff)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user