Skip to content

Commit

Permalink
chore: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyasbhat0 committed Aug 26, 2024
1 parent c75dc58 commit a04611b
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/changelog.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: "Ensure changelog updates"
on:
pull_request:
branches: [main]
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]

jobs:
changelog:
Expand Down
54 changes: 47 additions & 7 deletions docs/TESTNET.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@ Run testnet setup using the pre-complied testnet binary.

## Download Testnet Binary
```shell
curl https://github.com/arkeonetwork/arkeo/releases/latest
```

Move binary to `/usr/bin/`
```shell
mv arkeod /usr/bin/
./scripts/install-binary.sh
```

## Build Your Own Binary
Expand All @@ -36,7 +31,7 @@ arkeod init $MONIKER --chain-id arkeo

## Download Genesis
```shell
wget -qO- http://seed.innovationtheory.com:26657/genesis | jq '.result.genesis' > $HOME/.arkeo/config/genesis.json
wget -qO- http://seed.innovationtheory.com:26657/genesis | jq '.result.genesis' > $HOME/.arkeo/config/genesis.json
```
## Set Custom Ports

Expand Down Expand Up @@ -75,6 +70,51 @@ sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $HOME/.arkeo/config/config.toml

```

## Configure Seeds and Peers

```shell
SEEDS="aab68f68841eb072d996cd1b45c2b9c9b612d95b@seed.innovationtheory.com:26656"
PEERS="[email protected]:26656"
sed -i -e "/^\[p2p\]/,/^\[/{s/^[[:space:]]*seeds *=.*/seeds = \"$SEEDS\"/}" \
-e "/^\[p2p\]/,/^\[/{s/^[[:space:]]*persistent_peers *=.*/persistent_peers = \"$PEERS\"/}" $HOME/.arkeo/config/config.toml
```

# Configure Service

Create the node service file

```shell
sudo tee /etc/systemd/system/arkeo.service > /dev/null <<EOF
[Unit]
Description=Arkeo node
After=network-online.target
[Service]
User=$USER
WorkingDirectory=$HOME/.arkeo
ExecStart= $(which arkeod) start --home $HOME/.arkeo
Restart=on-failure
RestartSec=5
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
```

Reset node and download snapshot
```shell
arkeod tendermint unsafe-reset-all --home $HOME/.arkeo --keep-addr-book
```

Allow node P2P port in firewall

```shell
sudo ufw allow 26656/tcp
```

Enable and start the node service

```shell
sudo systemctl daemon-reload
sudo systemctl enable arkeo
sudo systemctl restart arkeo && sudo journalctl -fu arkeo
```

0 comments on commit a04611b

Please sign in to comment.