Quick Start

We are going to install CPChain and run a node on the testnet.

Building the source

First, make sure you have installed go, and configured the $GOPATH.

$ git clone https://github.com/CPChain/chain

$ cd chain
$ make clean
$ make all

Running CPChain

Connect to testnet

$ cd build/bin
$ ./cpchain run --runmode testnet

Create an account

$ ./cpchain account new --datadir ./datadir

Run a private network

$ cd examples/cpchain
$ ./cpchain-all.sh

# check logs
$ tail -f data/logs/*.log | grep number=

Run a local node

$ ./cpchain run --datadir ./datadir --unlock <You Address>