Installing the Cherry Node

Prerequisites

Hardware Requirements

We suggest running the node on at least

  • RAM: 4GB

  • CPU: 2

  • Hard Disk Space: 40GB

Operating system: preferably a recent Debian-based Linux distribution.

Install Rust

For debian-based distros:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

After installation, run rustc --version to check if the installation was successful.

Install dependencies

For debian-based distros:

sudo apt update
sudo apt install -y git clang protobuf-compiler curl libssl-dev llvm libudev-dev pkg-config

For other Linux Distribution please visit Substrate's Documentation https://docs.substrate.io/v3/getting-started/installation/#1-build-dependencies. Keep in mind that we also need pkg-configinstalled.

Initialize your wasm build environment

rustup update nightly
rustup update stable
rustup target add wasm32-unknown-unknown --toolchain nightly

Running the Node

  1. Clone cherry-relay-node repository

    git clone https://github.com/CherryNetwork/cherry-relay-node.git
    cd cherry-relay-node
  2. Run Cherry Binary

    • Mainnet

      1. Script

        chmod +x scripts/run_mainnet.sh
        ./scripts/run_mainnet.sh
      2. Binary

        cargo b --release && ./target/release/cherry \ 
        --chain node/service/chain-specs/mainnet-relay-regenesis.json \
        --bootnodes /ip4/13.39.104.56/tcp/30333/p2p/12D3KooWLeBxr6vEwv2vDmQMGgd1P72WvwuhcY1YGBD421B4PfuM \ 
        --telemetry-url "wss://telemetry.polkadot.io/submit/ 0"
      3. Docker

        docker run --rm -it -p 9944:9944 -p 9933:9933 -p 30333:30333 -v $(pwd):/tmp/cherry-node cherrylabsorg/cherry-polkadot-node:dev --chain cherry --bootnodes /ip4/13.39.104.56/tcp/30333/p2p/12D3KooWLeBxr6vEwv2vDmQMGgd1P72WvwuhcY1YGBD421B4PfuM --name mainnet-node01 --base-path /tmp/cherry-mainnet-node01
    • Testnet

      1. Script

        chmod +x scripts/run_testnet.sh
        ./scripts/run_testnet.sh
      2. Binary

        cargo b --release && ./target/release/cherry \ 
        --chain cherry-testnet \
        --bootnodes /ip4/52.47.101.101/tcp/30333/p2p/12D3KooWNdDRo2BkTLfBr88SZpWn43tSbTFkUo5fMMa8byKVg8uz \
        --telemetry-url "wss://telemetry.polkadot.io/submit/ 0" 
      3. Docker

        docker run --rm -it -p 9944:9944 -p 9933:9933 -p 30333:30333 -v $(pwd):/tmp/cherry-node cherrylabsorg/cherry-polkadot-node:dev --chain cherry-testnet --bootnodes /ip4/52.47.101.101/tcp/30333/p2p/12D3KooWNdDRo2BkTLfBr88SZpWn43tSbTFkUo5fMMa8byKVg8uz --name testnet-node01 --base-path /tmp/cherry-testnet-node01

Last updated