Skip to content

Latest commit

 

History

History
61 lines (52 loc) · 2.4 KB

File metadata and controls

61 lines (52 loc) · 2.4 KB

The staticChain configuration object

The staticChain configuration object appears within an Interbit configuration file. It describes the configuration for a static blockchain (one that is created and deployed when an Interbit network is created, and persists for the duration of the network, unless explicitly removed by an administrator), including the covenant to apply, any child blockchains to permission, the list of validators (including the block master), and the join configuration.

{% include "staticChain.js" %}

The above example includes two staticChain configuration objects, so that you can see the relationships involved for the chain joins configuration.

Properties

covenant String Required

Specifies the alias name of the covenant that should apply to this blockchain.

childChains Array Optional

A list of child blockchains. Each child is a string that expresses a configured chain alias within the same Interbit configuration file.

A blockchain with child chains is called the parent chain; it is responsible for sending each child chain an appropriate portion of the manifest during deployment, so that the child chains can apply updates. The parent chain can also access configuration information for its child chains within the manifest that it receives. Child chains cannot access configuration information for its parent chain.

config Object Required

Describes the primary configuration for this static chain.

validators Array Required

The list of validator nodes that administer this static blockchain. Each entry in the list is the public key string of the respective validator. The first validator in the list is the block master for this static blockchain. Any additional validators are given the root role in the blockchain access control list (ACL), and can perform any action.

Interbit blockchains use Proof of Authority (PoA) consensus, so the block master_ node approves or ignores all blockchain updates and forms all new blocks for the blockchain.

joins Object Optional

Describes the join configuration between static chains. See the joins configuration object for details.