Title: What is proofOfWorkLimit? Post by: Green Lantern on April 18, 2014, 11:24:30 AM Look at the code below from android bitcoin wallet:
Code: proofOfWorkLimit = Utils.decodeCompactBits(0x1d00ffffL); Code: static CBigNum bnProofOfWorkLimit(~uint256(0) >> 32); So I don't have an idea how to get first case "0x1d00ffffL" from second case? In binary "0x1d00ffffL" is 11101000000001111111111111111. P.S. I have looked in uint256.h. It wasn't helpful. P.S.S. Can anyone answer for sample what exactly should I put here "Utils.decodeCompactBits(0x1d00ffffL);" in case "~uint256(0) >> 27" ? Title: Re: What is proofOfWorkLimit? Post by: mriou on April 18, 2014, 10:47:25 PM This should help:
https://en.bitcoin.it/wiki/Difficulty |