Skip to content

RansomHubbies/malachite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

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

Compile the app

$ cargo build

Setup the testnet

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.

Spawn the nodes

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published