Installation
Install Dependencies:
sudo apt update && sudo apt upgrade -y
sudo apt-get install git curl build-essential make jq gcc snapd chrony lz4 tmux unzip make bc -y
Install GO: (amd64 - x86)
rm -rf $HOME/go
sudo rm -rf /usr/local/go
cd $HOME
curl https://dl.google.com/go/go1.23.1.linux-amd64.tar.gz | sudo tar -C/usr/local -zxvf -
cat <<'EOF' >>$HOME/.profile
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
EOF
source $HOME/.profile
go version
Set variables:
echo "export ARCHWAY_PORT="39"" >> $HOME/.bash_profile
source $HOME/.bash_profile
Install binary:
cd $HOME
rm -rf archway
git clone https://github.com/archway-network/archway
cd archway
git checkout v10.1.0
make install
archwayd version
which archwayd
Set min gas & Archway Chain:
archwayd init Node39-Guide --chain-id archway-1
sed -i "s/chain-id = .*/chain-id = \"archway-1\"/" $HOME/.archway/config/client.toml
sed -i "s/keyring-backend = .*/keyring-backend = \"os\"/" $HOME/.archway/config/client.toml
sed -i "s/node = .*/node = \"tcp:\/\/localhost:${ARCHWAY_PORT}657\"/" $HOME/.archway/config/client.toml
Custom ports:
sed -i.bak -e "s%:1317%:${ARCHWAY_PORT}317%g;
s%:8080%:${ARCHWAY_PORT}080%g;
s%:9090%:${ARCHWAY_PORT}090%g;
s%:9091%:${ARCHWAY_PORT}091%g;
s%:8545%:${ARCHWAY_PORT}545%g;
s%:8546%:${ARCHWAY_PORT}546%g;
s%:6065%:${ARCHWAY_PORT}065%g" $HOME/.archway/config/app.toml
sed -i.bak -e "s%:26658%:${ARCHWAY_PORT}658%g;
s%:26657%:${ARCHWAY_PORT}657%g;
s%:6060%:${ARCHWAY_PORT}060%g;
s%:26656%:${ARCHWAY_PORT}656%g;
s%^external_address = \"\"%external_address = \"$(wget -qO- eth0.me):${ARCHWAY_PORT}656\"%;
s%:26660%:${ARCHWAY_PORT}660%g" $HOME/.archway/config/config.toml
Set min gas:
sed -i "s/minimum-gas-prices = .*/minimum-gas-prices = \"0aarch\"/" $HOME/.archway/config/app.toml
Set indexer:
sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $HOME/.archway/config/config.toml
Pruning:
sed -i -e "s/^pruning *=.*/pruning = \"custom\"/" $HOME/.archway/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"100\"/" $HOME/.archway/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"50\"/" $HOME/.archway/config/app.toml
Download Genesis & addressbook:
curl -Ls https://file3.node39.top/Mainnet/Archway/genesis.json > $HOME/.archway/config/genesis.json
curl -Ls https://file3.node39.top/Mainnet/Archway/addrbook.json > $HOME/.archway/config/addrbook.json
Peers & Seed:
SEEDS=""
PEERS="[email protected]:26661,[email protected]:11556,[email protected]:11556,[email protected]:11556,[email protected]:27657,[email protected]:26662,[email protected]:11556,[email protected]:5000"
sed -i 's|^seeds *=.*|seeds = "'$SEEDS'"|; s|^persistent_peers *=.*|persistent_peers = "'$PEERS'"|' $HOME/.archway/config/config.toml
Create Service:
sudo tee /etc/systemd/system/archwayd.service > /dev/null <<EOF
[Unit]
Description=Archway Chain Validator
After=network-online.target
[Service]
User=$USER
ExecStart=$(which archwayd) start
Restart=on-failure
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable archwayd
Download snapshot: Here.
Check sync:
(False -> Done)
archwayd status 2>&1 | jq .SyncInfo