The scalability of 0G hinges on the idea of separating the workflow of data availability into data publishing lane and data storage lane. Large volume of data transfers happen on the data storage lane that is supported by the storage layer which achieves the horizontal scalability through well designed partitioning, while the data publishing lane guarantees the data availability property through consensus of data availability sampling which only requires tiny data flowing through the consensus protocol to avoid the broadcasting bottleneck. Data storage is an integral part of data availability because it must answer the question of where the data is published.
Official docs (https://docs.0g.ai/0g-doc/run-a-node/validator-node)!
-------
git clone -b v0.1.0
-------
./0g-chain/networks/testnet/install.sh
-------
source .profile
-------
0gchaind config chain-id zgtendermint_16600-1
-------
0gchaind init your_validator_name --chain-id zgtendermint_16600-1
-------
sudo apt install -y unzip wget
-------
rm ~/.0gchain/config/genesis.json
-------
wget -P ~/.0gchain/config https://github.com/0glabs/0g-chain/releases/download/v0.1.0/genesis.json
-------
0gchaind validate-genesis
-------
seeds = "c4d619f6088cb0b24b4ab43a0510bf9251ab5d7f@54.241.167.190:26656,44d11d4ba92a01b520923f51632d2450984d5886@54.176.175.48:26656,f2693dd86766b5bf8fd6ab87e2e970d564d20aff@54.193.250.204:26656,f878d40c538c8c23653a5b70f615f8dccec6fb9f@54.215.187.94:26656"
-------
persistent_peers = "a4055b828e59832c7a06d61fc51347755a160d0b@157.90.33.62:21656"
-------
0gchaind start
-------
0gchaind keys add key_name --eth
-------
0gchaind keys unsafe-export-eth-key key_name
Then import the returned private key to a wallet (Metamask for example) to get the public address.
-------
go to https://faucet.0g.ai/
-------
0gchaind tx staking create-validator \ --amount=ua0gi \ --pubkey=$(0gchaind tendermint show-validator) \ --moniker="" \ --chain-id=zgtendermint_16600-1 \ --commission-rate="0.10" \ --commission-max-rate="0.20" \ --commission-max-change-rate="0.01" \ --min-self-delegation="1" \ --from= \ --gas=auto \ --gas-adjustment=1.4
-------
ALL!