Running the chain
This guide explains how to set up and run a local Torus Substrate node, noting that its storage may differ slightly from the mainnet.
Building from source
Dependencies
The recommended way to install dependencies is using Nix.
If you don’t want to use Nix, you should have the following dependencies:
You can install Rust using Rustup:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shThen install protoc:
# on Ubuntusudo apt install protobuf-compilerBuilding and running the node
cargo build -p torus-node --releaseTo run a node connected to the Torus testnet:
cargo run --bin torus-node --release -- --chain data/testnet/spec.jsonDocker
TODO
Development
Check your code with:
cargo clippyRun all tests with:
cargo testRunning a local dev node:
cargo xtask run local --aliceAdditional Information
- The
--aliceand--bobflags are used to run predefined validator nodes. - You can customize your node’s configuration by modifying the appropriate files in the project.