Struct fuel_core_interfaces::model::Genesis
source · pub struct Genesis {
pub chain_config_hash: Bytes32,
pub coins_root: Bytes32,
pub contracts_root: Bytes32,
pub messages_root: Bytes32,
}
Expand description
The first block of the blockchain is a genesis block. It determines the initial state of the network - contracts states, contracts balances, unspent coins, and messages. It also contains the hash on the initial config of the network that defines the consensus rules for following blocks.
Fields§
§chain_config_hash: Bytes32
The chain config define what consensus type to use, what settlement layer to use, rules of block validity, etc.
coins_root: Bytes32
The Binary Merkle Tree root of all genesis coins.
contracts_root: Bytes32
The Binary Merkle Tree root of state, balances, contracts code hash of each contract.
messages_root: Bytes32
The Binary Merkle Tree root of all genesis messages.