CENNZnet node based on Plug
There are a number of ways to run a CENNZnet node. Please choose one that suits best for your interest.
Make sure Docker is installed and running on your machine.
# Start a local validator on a development chain
$ docker run \
-p 9933:9933 -p 9944:9944 \
cennznet/cennznet:1.0.0-rc2 --dev --unsafe-ws-external --unsafe-rpc-external
Follow the steps to build and run a node from the source code.
For Linux (the example below is for Debian-based machines):
$ sudo apt install -y build-essential clang cmake gcc git libclang-dev libssl-dev pkg-config
For MacOS (via Homebrew):
$ brew install openssl cmake llvm
For Windows [TODO: may need a separate link]
Install Rust on your machine through here, and the following rust version and toolchains.
$ cargo --version
$ rustup install nightly
$ rustup target add --toolchain=nightly wasm32-unknown-unknown
Then clone the repo, build the binary and run it.
$ git clone https://github.com/cennznet/cennznet.git
$ cd cennznet
$ cargo build --release
$ ./target/release/cennznet --help
# start a validator node for development
$ ./target/release/cennznet --dev
All PRs are welcome! Please follow our contributing guidelines here.