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
- Consensus
Builder - The Consensus factory, which can be used in order to configure the properties of a new Consensus.
- Proposal
Window - The struct represent CKB two-step-transaction-confirmation params
Enums§
- Next
Block Epoch - 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§
- Consensus
Provider - 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