# Compile and Run

# Download

Download source code via git

    git clone https://github.com/coopunion/blockchain.git

# Install Golang

Reference: Go Download and install (opens new window)

# Compile

cd /path/to/blockchain
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 (opens new window)

# Deployment

please refer: deploy

SSD is required

# Network

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