Browse Source

decred: quick fix for low net diff (testnet)

master
Tanguy Pruvot 9 years ago
parent
commit
6cd53a2305
  1. 1
      ccminer.cpp

1
ccminer.cpp

@ -555,6 +555,7 @@ static void calc_network_diff(struct work *work) @@ -555,6 +555,7 @@ static void calc_network_diff(struct work *work)
for (int m=shift; m < 29; m++) d *= 256.0;
for (int m=29; m < shift; m++) d /= 256.0;
if (opt_algo == ALGO_DECRED && shift == 28) d *= 256.0;
if (opt_debug_diff)
applog(LOG_DEBUG, "net diff: %f -> shift %u, bits %08x", d, shift, bits);

Loading…
Cancel
Save