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.
Before running the examples, make sure you have the required development environment setup as specified in this Setup section.
$ cargo build
Generate configuration and genesis for three nodes using the helper script (it will build the void-pos binary if needed):
$ scripts/make-testnet.sh --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.
You can start each node with the following command. Replace NODE with 0, 1, 2, 3, etc.
$ cargo run -- start --home nodes/NODE
$ scripts/spawn-testnet.sh --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.