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
- 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
- versionbits
- Versionbits defines a finite-state-machine to deploy a softfork in multiple stages.
Structs§
- Chain
Spec - The CKB block chain specification
- DepGroup
Resource - The genesis dep_group file resources
- Genesis
- The genesis information Load from config file.
- Genesis
Cell - The genesis cell information
- Hard
Fork Config - Hard forks parameters for spec.
- Issued
Cell - Initial token supply cell
- Params
- Parameters for CKB block chain
- Satoshi
Gift - The burned 25% of Nervos CKBytes in genesis block
- System
Cell - The system cell information
Enums§
- Spec
Error - The error type for Spec operations
Constants§
- OUTPUT_
INDEX_ DAO - The output index of DAO script in the genesis no.0 transaction
- OUTPUT_
INDEX_ SECP256 K1_ BLAK E160_ MULTISIG_ ALL - The output index of SECP256K1/multisig script in the genesis no.0 transaction
- OUTPUT_
INDEX_ SECP256 K1_ BLAK E160_ SIGHASH_ ALL - The output index of SECP256K1/blake160 script in the genesis no.0 transaction
- OUTPUT_
INDEX_ SECP256 K1_ 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