I'm trying to import the testnet block chain on a library I'm working on but speaking of difficulty I'm not understanding well the differences relative to the production network.
This is what I've understood until now about prodnet:
- max allowed target is 0xFFFF0000000000000000000000000000000000000000000000000000
- corresponding max bits (compressed target) is 0x1D00FFFF
While in testnet:
- what is the max allowed target?
On the wiki it's stated
that "Minimum difficulty of 1.0 on testnet is equal to difficulty of 0.5 on mainnet. This means that the mainnet-equivalent of any testnet difficulty is half the testnet difficulty." so I guess I've to shift left the prodnet max target, getting 0x1FFFE00000000000000000000000000000000000000000000000000000 but I can't find any confirmation for that.
- what is the corresponding compressed target?
Any help would be greatly appreciated!