decred: quick fix for low net diff (testnet)

This commit is contained in:
Tanguy Pruvot 2016-02-18 12:34:41 +01:00
parent b0617ba0fc
commit 6cd53a2305

View File

@ -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);