November 2018
Intermediate to advanced
528 pages
13h 21m
English
Now we will deal with the crucial part: the genesis block.
A genesis block is the first block in a blockchain. When a node boots, it initializes its copy of the blockchain alongside the genesis block and then begins the synchronization process. To start a new chain for our currency, we need to forge a new genesis block and override the original one hard coded in the Bitcoin code as it was set for an older date (January 2009).
Here's the source code of the function that generates the genesis blocks defined in chainparams.cpp:

We can easily spot some predefined values, such as the key for the genesis coinbase transaction and a ...
Read now
Unlock full access