Generate proto code
protoc --go_out=. \
--go_opt=paths=source_relative \
--go-grpc_out=. \
--go-grpc_opt=paths=source_relative \
proto/proto.protoCompile
go buildRun three nodes (in separate terminals)
# Terminal 1
./itu-ds-assignment4 -i 0
# Terminal 2
./itu-ds-assignment4 -i 1
# Terminal 3
./itu-ds-assignment4 -i 2Observe logs in ./app.log
You can add and remove nodes in config.json.
Nodes will wait until they can establish a connection to all other nodes before the simulation is started.