Crate ckb_chain_spec[][src]

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 chain = “path” under [ckb].

Modules

consensus

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

default_params

The default_params mod defines the default parameters for CKB Mainnet

Structs

ChainSpec

The CKB block chain specification

DepGroupResource

The genesis dep_group file resources

Genesis

The genesis information Load from config file.

GenesisCell

The genesis cell information

IssuedCell

Initial token supply cell

Params

Parameters for CKB block chain

SatoshiGift

The burned 25% of Nervos CKBytes in genesis block

SystemCell

The system cell information

Enums

SpecError

The error type for Spec operations

Constants

OUTPUT_INDEX_DAO

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

OUTPUT_INDEX_SECP256K1_BLAKE160_MULTISIG_ALL

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

OUTPUT_INDEX_SECP256K1_BLAKE160_SIGHASH_ALL

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

OUTPUT_INDEX_SECP256K1_DATA

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

Functions

build_genesis_type_id_script

Shortcut for build genesis type_id script from specified output_index

calculate_block_reward

Shortcut for calculate block_reward helper method