Browse Source

Fix testnet diff

master
James Hilliard 8 years ago
parent
commit
fce08f5468
  1. 4
      src/libckpool.c

4
src/libckpool.c

@ -2089,8 +2089,8 @@ double diff_from_nbits(char *nbits)
pow = nbits[0]; pow = nbits[0];
powdiff = (8 * (0x1d - 3)) - (8 * (pow - 3)); powdiff = (8 * (0x1d - 3)) - (8 * (pow - 3));
if (powdiff < 8) // testnet only if (powdiff < 0) // testnet only
powdiff = 8; powdiff = 0;
diff32 = be32toh(*((uint32_t *)nbits)) & 0x00FFFFFF; diff32 = be32toh(*((uint32_t *)nbits)) & 0x00FFFFFF;
numerator = 0xFFFFULL << powdiff; numerator = 0xFFFFULL << powdiff;

Loading…
Cancel
Save