Random Rotational Consensus
Random rotational consensus is an important component of the CESS protocol. Unlike the Polkadot consensus mechanism, random rotation consensus changes the process of verifying node elections. The following is the overall process flow:
A node stakes 1 million tokens to register as a consensus node.
At the beginning of each era validation nodes will rotate, and the rotation rule is credit ranking: Selecting the top 11 nodes with the highest credits from all consensus nodes as the validation nodes for this era.
The final credit is determined by the sum of reputation credits and the random credits:
Final Credits = (reputation credits * 80%) + (random credits * 20%).
The block producer selection mechanism is the same as BABE, where each block producer is randomly selected from 11 validation nodes through VRF.
The method of confirming blocks is the same as GRANDPA.
At the 5th epoch of each era, the validator node of the next era will be selected.
Reputation Model
Each consensus node entering the CESS network needs to maintain the network state and also undertake the task of data storing and scheduling. In order to encourage consensus nodes to do more, we have designed a reputation model. In our model, each consensus node has a reputation value, which is directly determined by the workload of the scheduler. Specifically, it includes the following items:
The total number of bytes processed for service files.
Number of timeout penalties for random file validation challenges.
The reputation value is calculated as follows:
Scheduler Reputation Value = 1000 * processing bytes ratio - (10 * penalty times)
Last updated