This document outlines the steps to deploy your own validator node.
Copy
- Memory: 64 GB
- CPU: 8 cores
- Disk: 1 TB NVME SSD
- Bandwidth: 100 MBps for Download / Upload
Make sure your server timezone configuration is UTC. Check your current timezone by running timedatectl
Note: Having a different timezone configuration may cause a LastResultHash mismatch error and take down your node!
Copy
git clone -b v0.2.3 <https://github.com/0glabs/0g-chain.git>
./0g-chain/networks/testnet/install.sh
source ~/.profile
Copy
0gchaind config chain-id zgtendermint_16600-2
We need to initialize the node to create all the necessary validator and node configuration files:
Copy
0gchaind init <your_validator_name> --chain-id zgtendermint_16600-2
Note: the validator name can only contain ASCII characters.
By default, the init
command creates config and data folder under ~/.0gchain
(i.e $HOME
). In the config directory, the most important files for configuration are app.toml
and config.toml
.