Skip to content

essential-contributions/void-pos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example channel-based app

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.

Run a local testnet

Prerequisites

Before running the examples, make sure you have the required development environment setup as specified in this Setup section.

Compile the app

$ cargo build

Setup the testnet

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.

Manual run

You can start each node with the following command. Replace NODE with 0, 1, 2, 3, etc.

$ cargo run -- start --home nodes/NODE

Spawn the nodes

$ 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.

About

Testing a VOID PoS network

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors