Title: How to get proofOfWorkLimit? Post by: Green Lantern on April 19, 2014, 12:59:49 PM Look at the code below from bitcoinj (core\src\main\java\com\google\bitcoin\params\MainNetParams.java):
Code: proofOfWorkLimit = Utils.decodeCompactBits(0x1d00ffffL); Code: static CBigNum bnProofOfWorkLimit(~uint256(0) >> 32); So I don't have an idea how to get first case "0x1d00ffff" from second case? P.S. I have looked in "uint256.h". It wasn't helpful. |