Testnet Instruction Node Validator
Required installations
sudo apt update && sudo apt upgrade -y
sudo apt install curl git wget build-essential jq make lz4 gcc unzip -y
Install Go
cd $HOME && \\
ver="1.22.0" && \\
wget "<https://golang.org/dl/go$ver.linux-amd64.tar.gz>" && \\
sudo rm -rf /usr/local/go && \\
sudo tar -C /usr/local -xzf "go$ver.linux-amd64.tar.gz" && \\
rm "go$ver.linux-amd64.tar.gz" && \\
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> ~/.bash_profile && \\
source ~/.bash_profile && \\
go version
Install And Build Binary
git clone <https://github.com/initia-labs/initia>
cd initia
git checkout v0.2.15
make install
Moniker
initiad init (Ur-Moniker) --chain-id initiation-1
Install Genesis.json
rm ~/.initia/config/genesis.json
wget <https://initia.s3.ap-southeast-1.amazonaws.com/initiation-1/genesis.json>
cp genesis.json ~/.initia/config/genesis.json
Set Minim Gas Price
sed -i -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \\"0.15uinit,0.01uusdc\\"/" $HOME/.initia/config/app.toml
Seeds Peers
PEERS="[email protected]:26313,[email protected]:26656,[email protected]:26656,[email protected]:53456,[email protected]:26656,[email protected]:36656,[email protected]:19656,[email protected]:26656,[email protected]:53456,[email protected]:25756,[email protected]:53456,[email protected]:26656,[email protected]:26656,[email protected]:26656" && \\
SEEDS="[email protected]:26656,c28827cb96c14c905b127b92065a3fb4cd77d7f6@testnet-seeds.whispernode.com:25756" && \\
sed -i \\
-e "s/^seeds *=.*/seeds = \\"$SEEDS\\"/" \\
-e "s/^persistent_peers *=.*/persistent_peers = \\"$PEERS\\"/" \\
"$HOME/.initia/config/config.toml"
Set Up Pruning
sed -i \\
-e 's|^pruning *=.*|pruning = "custom"|' \\
-e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \\
-e 's|^pruning-keep-every *=.*|pruning-keep-every = "0"|' \\
-e 's|^pruning-interval *=.*|pruning-interval = "19"|' \\
$HOME/.initia/config/app.toml
Create A Service
sudo tee /etc/systemd/system/initiad.service > /dev/null <<EOF
[Unit]
Description=initiad
After=network-online.target
[Service]
User=$USER
ExecStart=$(which initiad) start
Restart=on-failure
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
Start Service & Reload System Config