Skip to content

Install

Alberto Sonnino edited this page Mar 21, 2021 · 7 revisions

You first need to install Rust, make sure that you are running at least the version 1.48 (if you aren't you can update it running rustup update). You can then clone the repo and compile the codebase:

$ git clone https://github.com/asonnino/hotstuff.git
$ cd hotstuff
$ cargo build

To test your installation, you can run the unit tests with cargo test and quickly deploy a testbed on your local machine:

$ cargo run --bin node -- -vvv deploy --nodes 4

This commands deploys a testbed of 4 nodes but no clients, so the nodes run creating empty blocks. You can stop them pressing ctr + C (be ready, they run very fast and print many logs to stdout).

Clone this wiki locally