Git Product home page Git Product logo

cennznet's Introduction

CENNZnet Node

license: LGPL v3 CircleCI PRs Welcome

CENNZnet node based on Plug

Running a CENNZnet node

There are a number of ways to run a CENNZnet node. Please choose one that suits best for your interest.

Using Docker

Make sure Docker is installed and running on your machine. If you need to install Docker, head over to Docker for Desktop first, get it installed, create an account and login. Make sure Docker is running in the background.

Now you can proceed to the terminal with the following command:

# Start a local validator on a development chain
$ docker run \
    -p 9933:9933 -p 9944:9944 \
    cennznet/cennznet:1.0.0 --dev --unsafe-ws-external --unsafe-rpc-external

Using the source code

Follow the steps to build and run a node from the source code.

1. Make sure build environment is set up

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]

2. Install Rust and set up Rust environment

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

3. Build the node binary and run

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

Contributing

All PRs are welcome! Please follow our contributing guidelines here.

cennznet's People

Contributors

cowboy-bebug avatar dtbx avatar hoani avatar jordy25519 avatar karishmabothara avatar roy-powerfinance avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.