SoftwareVerde / bitcoin-cash-specification

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

What is the difficulty of the genesis block? #25

Open monsterbitar opened 3 years ago

monsterbitar commented 3 years ago

In the electron-cash codebase, they refer to "max target bits" as the difficulty of a block that doesn't have a prior block (= the genesis block).

I'm trying to replicate this and build an SPV client library and thought that this is something that should be easy to lookup in the documentation, but I couldn't find a number to use in either of:

https://documentation.cash/protocol/blockchain/proof-of-work/difficulty-adjustment-algorithm https://documentation.cash/protocol/blockchain/proof-of-work https://documentation.cash/protocol/blockchain/chainwork-proof https://documentation.cash/protocol/spv

Consider this issue as a wishlist item to get static protocol constants (or links to them) in the documentation.

For now, I'll just dig further in the electron-cash codebase and see if I can find it there.