From 57ef7d5afcd05b8435aa3d0c34a8fe30e6770f94 Mon Sep 17 00:00:00 2001 From: karlo <93879680+karloinv@users.noreply.github.com> Date: Wed, 15 Nov 2023 12:18:24 +0200 Subject: [PATCH] setup.md deleted --- docs/archway/setup.md | 242 ------------------------------------------ 1 file changed, 242 deletions(-) delete mode 100644 docs/archway/setup.md diff --git a/docs/archway/setup.md b/docs/archway/setup.md deleted file mode 100644 index f0da806c..00000000 --- a/docs/archway/setup.md +++ /dev/null @@ -1,242 +0,0 @@ ---- -sidebar_position: 1 -description: Setting up Archway Validator node ---- - -# Setup - -## Hardware requirements - -- Memory: **16 GB RAM** -- CPU: **8 Core** -- Disk: **500 GB SSD Storage** - -## Setting up Archway Validator node - -### Server preparing - -```bash -sudo apt update && sudo apt upgrade -y && \ -sudo apt install curl tar wget clang pkg-config libssl-dev libleveldb-dev jq build-essential bsdmainutils git make ncdu htop screen unzip bc fail2ban htop -y -``` - -![archway-1](./img/archway-1.png) - -### Install Go - -```bash -ver="1.20.3" && \ -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" >> $HOME/.bash_profile && \ -source $HOME/.bash_profile && \ -``` - -Check Go version - -```bash -go version -``` - -### Download the binary file - -```bash -cd $HOME -git clone https://github.com/archway-network/archway.git -cd archway -git checkout v0.4.0 -make install -``` - -![archway-2](./img/archway-2.png) - -### Initialize node - -:::note -Change `f5nodes` to yours one. -::: -```bash -archwayd init f5nodes --chain-id constantine-2 -archwayd config chain-id constantine-2 -``` - -![archway-3](./img/archway-3.png) - - -### Create wallet for node - -:::note -Change `f5nodes` to yours one. -::: -- Create a new key -```bash -archwayd keys add f5nodes -``` - -![archway-4](./img/archway-4.png) - -![archway-5](./img/archway-5.png) - -- Restore an existing key using a mnemonic (optional) -```bash -archwayd keys add f5nodes --recover -``` - -### Download genesis - -```bash -wget -O $HOME/.archway/config/genesis.json http://94.250.203.6:90/const2-genesis.json -``` - -![archway-6](./img/archway-6.png) - -### Download addrbook - -```bash -wget -qO $HOME/.archway/config/addrbook.json http://94.250.203.6:90/constantine-2.addr.json -``` - -### Create a service file - -```bash -sudo tee /etc/systemd/system/archwayd.service > /dev/null < -``` - -### Check synchronization - -```bash -archwayd status 2>&1 | jq .SyncInfo -``` -:::info -If the value is `false`, you can proceed to the next step. -::: - -![archway-9](./img/archway-9.png) - - -### Create a validator - -:::note -Change `f5nodes` to yours one. -::: - -```bash -archwayd tx staking create-validator \ - --amount=1000000uconst \ - --pubkey=$(archwayd tendermint show-validator) \ - --moniker=f5nodes \ - --chain-id=constantine-2 \ - --commission-rate="0.10" \ - --commission-max-rate="0.20" \ - --commission-max-change-rate="0.01" \ - --min-self-delegation=1000000 \ - --fees=200uconst \ - --from=f5nodes - -y -``` - - -## Useful commands - -### Check node info - -```bash -archwayd status 2>&1 | jq .NodeInfo -``` - -### Check synchronization - -```bash -archwayd status 2>&1 | jq .SyncInfo -``` - -### Check logs - -```bash -journalctl -u archwayd -f -o cat -``` - -### Check balance - -```bash -archwayd q bank balances archway155...nnmq6 -``` - -### Voting - -```bash -archwayd tx gov vote --from $WALLET --fees 200uconst -y -``` - -### Unjail - -```bash -archwayd tx slashing unjail --from $WALLET --fees 200uconst -``` - -### Delegate tokens - -```bash -archwayd tx staking delegate $VALOPER uconst--from $WALLET --fees 200uconst -y -``` - -### Undelegate tokens - -```bash -archwayd tx staking unbond $VALOPER uconst --from $WALLET --fees 200uconst -y -``` - -### Send tokens - -```bash -archwayd tx bank send $WALLET uconst --fees 200uconst --gas autonibid status 2>&1 | jq .SyncInfo -``` - -### Delete a node - -```bash -sudo systemctl stop archwayd && \ -sudo systemctl disable archwayd && \ -rm /etc/systemd/system/archwayd.service && \ -sudo systemctl daemon-reload && \ -cd $HOME && \ -rm -rf .archwayd && \ -rm -rf archwayd && \ -rm -rf $(which archwayd) -```