ckb_chain_spec

Module consensus

Source
Expand description

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

Structs§

Consensus
Struct Consensus defines various parameters that influence chain consensus
ConsensusBuilder
The Consensus factory, which can be used in order to configure the properties of a new Consensus.
ProposalWindow
The struct represent CKB two-step-transaction-confirmation params

Enums§

NextBlockEpoch
Corresponding epoch information of next block

Constants§

LC_MAINNET_ACTIVATION_THRESHOLD
The mainnet default activation_threshold
MAX_BLOCK_BYTES
The default maximum allowed size in bytes for a block
MAX_BLOCK_INTERVAL
max block interval, 48 seconds
MAX_BLOCK_PROPOSALS_LIMIT
The default maximum allowed amount of proposals for a block
MIN_BLOCK_INTERVAL
min block interval, 8 seconds
TESTNET_ACTIVATION_THRESHOLD
The testnet default activation_threshold
TWO_IN_TWO_OUT_BYTES
bytes of a typical two-in-two-out tx.
TWO_IN_TWO_OUT_CYCLES
cycles of a typical two-in-two-out tx.
TX_PROPOSAL_WINDOW
Default transaction proposal window.
TYPE_ID_CODE_HASH
“TYPE_ID” in hex

Traits§

ConsensusProvider
Trait for consensus provider.

Functions§

build_genesis_dao_data
Build the dao data of genesis block
build_genesis_epoch_ext
Build the epoch information of genesis block