Skip to content

v1.0.0 Consensus

SmartMesh edited this page Aug 5, 2019 · 3 revisions

v1.0.0 consensus

V1.0.0 consensus optimizes the v0.0.5 version . On this basis, it adds the mechanism of mortgaged SMT participating in block extraction, and optimizes the selection of Beacon nodes into the mode of community election. Finally, the details of node selection and replacement block selection are given. Adjustments have been made

Nodes in the network are divided into three categories:

  1. Outgoing node: responsible for network accounting, including two types
  • Beacon node

Beacon node selects one block node in turn from beacon node list in each round

  • Staking node

Staking nodes are selected from mortgaged 88wSMT out-of-block nodes, and 16 ordinary out-of-block nodes are elected in each round.

  1. Candidate nodes: They are not responsible for the accounting work on the network, but are ready to become block nodes for network accounting. They are the list of staking 88wSMT nodes.

  2. Ordinary nodes: The other nodes on the network are simply information of synchronous blocks. Can be a candidate node by staking a certain SMT application

Beacon node selection mechanism:

Beacon node refers to the foundation or exchange whose SMT account balance reaches a certain value. These nodes are voted into the beacon node list by the community. At present, the only Beacon node is the SmartMesh Foundation node, which has a maximum of five nodes.

Staking node selection mechanism:

In each round, we select 16 nodes from the staking 88wSMT out-block list by introducing VRF (verifiable random number) into the current out-block node for out-block.

Substitute block rule:

staking node replacement block rule is adjusted to the current Beacon node replacement block, while the current Beacon node replacement block rule is adjusted to the beacon node list sequence replacement block, and the difficulty of block production decreases in turn. When the staking node is out of the block, the difficulty is 6 - > 5 - > 4 - > 3 - > 2 - > 1; when the Beacon node is out of the block, the difficulty is 6 - > 5 - > 4 - > 3 - > 2. Each substitution block time is delayed by 4 seconds, and the next block will be generated after 14 seconds + after the current block is generated.