Genesis file items
The GoQuorum genesis file contains network configuration items and genesis block parameters.
Network configuration items are specified in the genesis file in the
|Milestone blocks||Milestone blocks for the network.|
|Chain ID for the network.|
|Network uses IBFT or QBFT. This option is being deprecated and will be removed in a future release. Use |
|Network uses IBFT and contains IBFT configuration items.|
|Network uses QBFT and contains QBFT configuration items.|
|Network uses Clique and contains Clique configuration items.|
|Maximum transaction size. The default is |
|Maximum smart contract code size. The default is |
|Set to |
Using the Raft consensus protocol doesn't require a specific item in the
Genesis block parameters
The purpose of some genesis block parameters varies depending on the consensus protocol (IBFT, QBFT, Raft, or Clique). These parameters include:
The following table describes the genesis block parameters with the same purpose across all consensus protocols.
|Address to pay mining rewards to. Can be any value in the genesis block (commonly set to |
|Block gas limit. Total gas limit for all transactions in a block.|
|Used in block computation. Can be any value in the genesis block (commonly set to |
|Creation date and time of the block. Must be before the next block so we recommend specifying |
|Defines accounts with balances or contracts.|
In public networks, the milestone blocks specify the blocks at which the network changed protocol.
In private networks, the milestone block defines the protocol version for the network.
When specifying the milestone block for private networks, you only need to specify the latest milestone. It is implied this includes the preceding milestones.