Skip to main content

Compile and Run

Download

Download source code via git

  git clone https://github.com/secblockchain/core-blockchain/

Install Golang

Reference: Go Download and install

Compile

cd /path/to/Smart Energy Chain
make geth

If you want to use cross compile, like compiling on Mac for Linux, use make geth-linux ,
make geth-linux-amd64, etc.

After compilation completed, the generated binary is in the folder build/bin

Run

By running ./build/bin/geth --help, we can get all option info. Specific usage can refer to
Command-line Options

Deployment

please refer deployment

Info

SSD is required

Network

Program will connect into mainnet after started. If want to connect the public testnet, you can add option
--testnet to command when starting.