MicroChainSCSSelection
优质
小牛编辑
126浏览
2023-12-01
MicroChain select SCSs using the following methods:
- In the MicroChain contract, DAPP developer need to choose the range of SCSs[min,max] needed for the MicroChain.
- Vnode compare the distance between the SCS account and the VNODE. If its smaller than the selected target, then notify the SCS.
- SCS received the notice from register, then it need to answer with RegisterAsSCS function to confirm to join the MicroChain.
By using this SCS selection method, we want to:
- The selection is random;
- The selection can adjust with number of SCS in the pool;
- The selection can be sure the selected SCSs are live in the network.
Note: The required distance between two address(hash_dist) is decided from the value of index_range RangeIndex[] 。