This is an example application using the high-level channel-based interface for interacting with consensus.
For more background on this application, please read the corresponding tutorial which goes over everything needed to write such an application.
$ cargo build
Generate configuration and genesis for three nodes using the testnet command:
$ cargo run -- testnet --nodes 3 --home nodes
This will create the configuration for three nodes in the nodes folder. Feel free to inspect this folder and look at the generated files.
$ bash spawn.bash --nodes 3 --home nodes
If successful, the logs for each node can then be found at nodes/X/logs/node.log.
$ tail -f nodes/0/logs/node.log
Press Ctrl-C to stop all the nodes.