SCS

The executable SCS node program was released on Pizza Day.

This release is alpha version of MOAC microchain. It is still under development but we want you to try and taste it with us. It is for programmers only.

The package is Only to run at a single node mode for easy debugging. It contains both vnode and scs executables and necessary files

Executables: Windows: pizzaAlpha.vnode.scs.widows.zip Ubuntu: pizzaAlpha.vnode.ubuntu.tar.gz, pizzaAlpha.scs.ubuntu.tar.gz

We also have some video instructions for developers. Please let us know your thoughts and comments.

English tutorials:

Youtube Youku

SubChainProtocolBase

启动 ./bin/moac –datadir “/tmp/moac/60/01” –networkid 1975 –nodiscover –verbosity 4

运行一个Vnode的控制窗 ./bin/moac attach /tmp/moac/60/01/moac.ipc

运行SCS1

./scs1/scsserver ./go/src/github.com/innowells/moac-scs/build/bin/scsserver

Start SCS2

.scs2/scsserver
./go/src/github.com/innowells/moac-scs/build/bin/scsserver

=============== Test commands in the console =============== personal.newAccount(“123456”) miner.start() personal.unlockAccount(mc.accounts[0], “123456”, 0) scs1=”0xA6D018ae6981552Df5C39b5911bF7CA793D0405c” scs2=”0x700A559b7C5c3D5f79df9f7EfdD0bd068CBFad4e” mc.getBalance(scs1)/1000000000000000000 mc.getBalance(scs2)/1000000000000000000 mc.getBalance(mc.accounts[0])/1000000000000000000

loadScript("deploy_p1.js")
loadScript("deploy_s1.js")
loadScript("test_s1.js")

sendtx(mc.accounts[0], scs1, 200)
sendtx(mc.accounts[0], scs2, 200)
mc.getBalance(scs1)/1000000000000000000
mc.getBalance(scs2)/1000000000000000000

registertopool(scs1)
registertopool(scs2)
subchainprotocolbase.scsCount()
subchainprotocolbase.scsList(scs1)
subchainprotocolbase.scsList(scs2)

miner.stop()
miner.start(1)
registeropen()
subchainbase.nodeCount()
registerclose()

General info

SubChainBase

SCS node selection

SCS creation

SCS running

SCS flushing