This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Run 3-node local net | |
2. Create ALICE_ORG in sample UI | |
3. Run chain-init-story script | |
4. Create new shipment in sample UI e.g. S0002 (status: Ready) | |
6. (Install & run Android app) | |
7. Create account e.g. ANDROID | |
8. Add account to Polkadot.js extension | |
9. Provision new account (balance transfer from ALICE to e.g. ANDROID account) | |
10. Add ANDROID account to ALICE_ORG org |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module (ring). | |
-export ([start/3, first_proc/3, first_loop/4, proc_start/3, proc_loop/2]). | |
start(MsgCount, ProcCount, Msg) -> | |
spawn(ring, first_proc, [MsgCount, ProcCount, Msg]). | |
first_proc(MsgCount, ProcCount, Msg) -> | |
io:format("First process ~w created, setting up the rest of the ring ...~n", [self()]), | |
NextPid = spawn(ring, proc_start, [self(), self(), ProcCount-1]), | |
LastPid = receive |