This project demonstrates our guide, which will allow you to correctly run 0gchaind on Linux.
- Memory: 64 GB
- CPU: 8 cores
- Disk: 1 TB NVME SSD
- Bandwidth: 100 MBps for Download / Upload
git clone -b v0.2.3 <https://github.com/0glabs/0g-chain.git>
./0g-chain/networks/testnet/install.sh
source ~/.profile
0gchaind config chain-id zgtendermint_16600-2
0gchaind init <your_validator_name> --chain-id zgtendermint_16600-2
sudo apt install -y unzip wget
rm ~/.0gchain/config/genesis.json
wget -P ~/.0gchain/config <https://github.com/0glabs/0g-chain/releases/download/v0.2.3/genesis.json>
0gchaind validate-genesis
Your node needs to know how to find peers. You’ll need to add healthy seed nodes to $HOME/.0gchain/config/config.toml
.
The format of the config.toml
file is as follows:
#######################################################
### P2P Configuration Options ###
#######################################################
[p2p]
# ...
# Comma separated list of seed nodes to connect to
seeds = "<node-id>@<ip>:<p2p port>"
We provide four seed nodes below.
[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656