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?

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.

  • 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. – Narayan Prusty Sep 26 '16 at 13:51
  • update here link as it is 2015 blog – Himanshu sharma Dec 5 '16 at 12:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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