Compile and Run

Download

Pull source code from git

git clone https://github.com/DxChainNetwork/dxc.git

Install Golang

Reference: https://go.dev/doc/install

// or in linux:
$ sudo snap install go --classic

Compile

$ cd /path/to/dxc
$ make geth

The compiled geth executable file is under the /path/to/dxc/build/bin path.

Run ./build/bin/geth --help to get instruction, or refer to command-line-options.

Run

Run Configuration

  • Access the working directory /directory/of/geth

  • Create config.tomlin the working directory

Default to use SyncMode = "snap" for the node snyc mode, for the full node sync is SyncMode = "full"

  • Createstart.sh in the working directory

Run Node

Network

The node program starts as mainnet by default, add the --testnet command at runtime if you want to start the testnet.

Last updated

Was this helpful?