SoftwareVerde / bitcoin-cash-specification

Specification of the Bitcoin Cash protocols and consensus
Other
8 stars 5 forks source link

Is mining based on the lossy encoding of target? #26

Open monsterbitar opened 3 years ago

monsterbitar commented 3 years ago

In https://documentation.cash/protocol/blockchain/block/block-header#compressed-target-format it says that the target is a lossy encoding of the real calculated target when stored in the header.

Based on discussion elsewhere, it seems that mining is validated against this lossy number, rather than the accurate one.

That totally went against my intuition, so I think it would be great if this was more clearly documented.