MOAC Technical Columns “Microchain SCS Node Selection”
Microchain SCS node selection occurs in three steps:
1. The microchain sets a SCS node number range for selection [min,max]. Then it calls getSelectionTarget() to the microchain protocol contract and obtains a selection target according to the total number of SCS currently registered.
2. The V-node checks the distance from its connected SCS address to the microchain address, which allows the SCS to know if the distance is smaller than the selection target.
3. The SCS receives the information for registering, where it must actively call the microchain’s RegisterAsSCS to confirm its joining in the microchain.
Such selection can guarantee that:
1. The selection process is random
2. SCS selection is automatically adjusted according the total number of current SCS.
3. SCS liveness is indicated by the displayed SCS confirmation.
Note: the distance between the two addresses (hash_dist) is determined by the digits (index_range) defined by RangeIndex[].
Microchain
Hash_dist = | 0 — A| * 8 + | E — 9| = 69
Where to Find Us
Website: https://moac.io/
GitHub: https://github.com/MOACChain/moac-core
Twitter: https://twitter.com/moac_io
Reddit: https://www.reddit.com/r/MOAC/
Medium: https://medium.com/moac
Steemit: https://steemit.com/@moac-official
Telegram(International): https://t.me/moacblockchain
Telegram(Developers): https://t.co/8m3m9RD5ix
Telegram(China): https://t.co/73rU9sHWLH
YouTube (Event Channel):https://www.youtube.com/channel/UCBU405W7vfOPBicLwW9-QOA
Youtube (Technical Channel) :
https://www.youtube.com/channel/UC_U54wsGNrm_Yivj5bH9i7Q?view_as=subscriber
Facebook: https://www.facebook.com/moacchain/