Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the difficulty of the genesis block? #25

Open
monsterbitar opened this issue Jul 3, 2021 · 0 comments
Open

What is the difficulty of the genesis block? #25

monsterbitar opened this issue Jul 3, 2021 · 0 comments

Comments

@monsterbitar
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant