DPoS Consensus Realization
DPoS consensus can be divided into the following five stages:
Stage 1: 12 Fixed CR Nodes Block Generation on Consensus
In config.json, you can use CRCOnlyDPOSHeight to configure the starting height of the first stage, and the default height of the main network is 343400. In this stage, the 12 CRCArbiters specified in the configuration file generate blocks on consensus.
Stage 2: 12 Fixed CR+24 Voted DPoS Nodes Generate Blocks on Consensus
Support the registration of DPoS nodes and voting. In config.json, you can use PublicDPOSHeight to configure the starting height of the second stage, and the default height of the main network is 402680. In this stage, the 12 CRCArbiters specified in the configuration file and 24 DPoS nodes registered and voted together to generate blocks on consensus.
Stage 3: 12 DPoS Nodes Claimed by CR +24 Voted for DPoS Nodes Generate Blocks on Consensus
CR members are supported in order to claim the DPoS nodes. In config.json, the starting height of the third stage can be configured with CRClaimDPOSNodeStartHeight, and the default height of the main network is 751400. At this stage, the DPoS nodes claimed by 12 CR members and 24 registered and voted DPoS nodes generate blocks on consensus. During the period from the change of CR to the unclaimed DPoS nodes, the CR of unclaimed DPoS nodes is temporarily replaced by the voting DPoS nodes.
Stage 4: 12 DPoS Nodes Claimed by CR +23 Voting for DPoS Nodes Generate Blocks on Consensus +1 Randomly Selected Candidate Node
In order to improve the community nodes participation degree, a random candidate DPoS node is added. The top 108 candidate nodes with the same probability are selected as the duty nodes to participate in generating block on consensus and gain voting and block generation profits. NoCRCDPOSNodeHeight can be used to configure the starting height of the fourth stage in config.json. The default height of the main network is 932530.
Stage 5: Change to Staking Mining. All 36 nodes Participating in Consensus are Randomly Selected from 12 CR and Nodes Meeting the Staking Mining Threshold
The fifth stage is still under development, and the detailed design can be seen in the CRC DPoS2.0 detailed design proposal.
Last updated