Crate ckb_chain_spec[][src]

Expand description

The Chain Specification

By default, when simply running CKB, CKB will connect to the official public Nervos network.

In order to run a chain different to the official public one, with a config file specifying spec = { file = "<the-path-of-spec-file>" } under [chain].

Modules

Consensus defines various tweakable parameters of a given instance of the CKB system.

The default_params mod defines the default parameters for CKB Mainnet

Structs

The CKB block chain specification

The genesis dep_group file resources

The genesis information Load from config file.

The genesis cell information

Hard forks parameters for spec.

Initial token supply cell

Parameters for CKB block chain

The burned 25% of Nervos CKBytes in genesis block

The system cell information

Enums

The error type for Spec operations

Constants

The output index of DAO script in the genesis no.0 transaction

The output index of SECP256K1/multisig script in the genesis no.0 transaction

The output index of SECP256K1/blake160 script in the genesis no.0 transaction

The output data index of SECP256K1 in the genesis no.0 transaction

Functions

Shortcut for build genesis type_id script from specified output_index

Shortcut for calculate block_reward helper method