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 3 million tokens to register as a consensus node.
At the start of each era, validator nodes are chosen based on credit ratings. The top 11 nodes with the highest credits among all consensus nodes serve as the validation nodes for that era.
The final credit rating is calculated based on reputation credits, staked score (calculated from both self and delegated), and random credits.
Final Credits = (reputation credits * 50%) + (staked score * 30%) + (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