3

To calculate difficulty of a block we need the parent block timestamp and difficulty? As there doesn't exist a parent block so what values should we take for those?

1 Answer 1

3

The difficulty for the genesis block, along with all the other parameters, is hard coded into the Ethereum clients. It is not calculated. More information about genesis block can be found here.

The Genesis block is pretty much a database file: it contains all the transactions from the Ether sale, and when a user inputs it into the client, it represents their decision to join the network under its terms: it is the first step to consensus.

2
  • I know that. What I want to know is where from did they get those hardcoded values? Parent hash can be 0 but what about parent timestamp? If I use 0 as parent timestamp than difficulty will be too easy. Sep 26, 2016 at 13:51
  • update here link as it is 2015 blog Dec 5, 2016 at 12:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.