Requirements:
The microchain agreement contract must have already been created
Parameters
The agreement to be used
The number of SCS nodes on the microchain [min,max], select the nodes up to the thousandth
Refresh time of microchain
Use Microchain logic code Funccode
Process:
Funccode is setup by the deployer by deploying a global microchain contract.
The DAPP deployer calls RegisterOpen to allow the SCS to register. The V-node code is called in the meantime; if any SCS connection is found and satisfies the requirement, a message will be pushed to the SCS.
The SCS node initiates a RegisterAsSCS call for the microchain contract to confirm joining that particular microchain.
The DAPP deployer calls RegisterClose to close the registration, and the V-node determines if the conditions was satisfied during the execution. If they were indeed satisfied, the v-node will push a newSubchanmsg to SCS, and a series of initializing operations will be triggered at the SCS side, after which microchain setup is completed.
If the conditions weren’t satisfied, the DAPP deployer will restart this process.
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/