Skip to content

A simple guide that will allow you to become a Project 0g validator

License

Notifications You must be signed in to change notification settings

0semter0/0g_validator_node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

0g_validator_node

0_AxKIus_I-soNSp03

Hardware Requirement

Key Value
Memory 64 GB
CPU 8 cores
Disk 1 TB NVME SSD
Bandwidth 100 MBps

Installation

Install 0gchaind via CLI

git clone -b v0.2.3 https://github.com/0glabs/0g-chain.git
./0g-chain/networks/testnet/install.sh
source ~/.profile

Set Chain ID

0gchaind config chain-id zgtendermint_16600-2

Initialize Node

0gchaind init <your_validator_name> --chain-id zgtendermint_16600-2

Genesis & Seeds

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

Add seed Nodes

The format of the config.toml file is as follows:

[p2p]

# ...

# Comma separated list of seed nodes to connect to
seeds = "<node-id>@<ip>:<p2p port>"

Start Testnet

0gchaind start

Create Validator

0gchaind keys add <key_name> --eth
0gchaind tx staking create-validator \
  --amount=<staking_amount>ua0gi \
  --pubkey=$(0gchaind tendermint show-validator) \
  --moniker="<your_validator_name>" \
  --chain-id=zgtendermint_16600-2 \
  --commission-rate="0.10" \
  --commission-max-rate="0.20" \
  --commission-max-change-rate="0.01" \
  --min-self-delegation="1" \
  --from=<key_name> \
  --gas=auto \
  --gas-adjustment=1.4

About

A simple guide that will allow you to become a Project 0g validator

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published