April 21, 2022

Archway start server (torii-1)

System requirements:

4 GB RAM, 2 CPU, 512 GB SSD

1) Start

Config

archwayd config chain-id torii-1
external_address=$(wget -qO- eth0.me)
peers="[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:46656,[email protected]:26756,[email protected]:30273,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656"
sed -i.bak -e "s/^external_address *=.*/external_address = \"$external_address:26656\"/; s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.archway/config/config.toml
seeds=""
sed -i.bak -e "s/^seeds =.*/seeds = \"$seeds\"/" $HOME/.archway/config/config.toml

Download genesis

wget -O $HOME/.archway/config/genesis.json "https://github.com/archway-network/testnets/raw/main/torii-1/genesis.json"
archwayd unsafe-reset-all

Create service

sudo tee /etc/systemd/system/archwayd.service > /dev/null <<EOF
[Unit]
Description=archwayd
After=network.target
[Service]
Type=simple
User=$USER
ExecStart=$(which archwayd) start
Restart=on-failure
RestartSec=10
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF

Start service

sudo systemctl daemon-reload
sudo systemctl enable archwayd
sudo systemctl restart archwayd && journalctl -u archwayd -f -o cat

Check consensus

curl -s http://localhost:26657/consensus_state  | jq '.result.round_state.height_vote_set[0].prevotes_bit_array'

Check sync

curl localhost:26657/status