Installation
Prerequiretes
Hardware
Minimun Spesification
CPU
2 Cores
RAM
4 GB
Disk
100GB SSD
Installation
Download binary file
wget https://github.com/airchains-network/junction/releases/download/v0.3.2/junctiond-linux-amd64
mv junctiond-linux-amd64 junctiond
chmod +x junctiond
mv junctiond /usr/local/bin/
junctiond version
Initialize the node
junctiond init <your-name> --chain-id varanasi-1
Download Genesis & Addrbook
curl -L https://snapshot-2.provewithryd.xyz/airchain/genesis.json > $HOME/.junctiond/config/genesis.json
curl -L https://snapshot-2.provewithryd.xyz/airchain/addrbook.json > $HOME/.junctiond/config/addrbook.json
Configure Seeds and Peers
SEEDS="[email protected]:26656"
PEERS="$(curl -sS https://testnet-rpc-airchain.provewithryd.xyz/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr)"' | awk -F ':' '{print $1":"$(NF)}' | sed -z 's|\n|,|g;s|.$||')"
sed -i -e "s|^seeds *=.*|seeds = '"$SEEDS"'|; s|^persistent_peers *=.*|persistent_peers = '"$PEERS"'|" $HOME/.junctiond/config/config.toml
Customize Pruning
sed -i \
-e 's|^pruning *=.*|pruning = "custom"|' \
-e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \
-e 's|^pruning-interval *=.*|pruning-interval = "20"|' \
$HOME/.junctiond/config/app.toml
Set Minimum Gas Price, and Disable the Indexer
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0.001uamf\"|" $HOME/.junctiond/config/app.toml
sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $HOME/.junctiond/config/config.toml
Create Systemd Services
tee /etc/systemd/system/junctiond.service > /dev/null <<EOF
[Unit]
Description=airchains testnet node
After=network-online.target
[Service]
User=root
ExecStart=/usr/local/bin/junctiond start
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
Enable and Start Services
systemctl daemon-reexec
systemctl daemon-reload
systemctl enable junctiond.service
systemctl start junctiond.service
Last updated