MitchelNode
  • MitchelNode
  • Althea
  • Haqq
  • Kroma
  • BounceBit
  • Babylon
  • Allora
  • Dill
Powered by GitBook
On this page
  • System Requirements
  • Preparation
  • Installation
  • Configuration
  • Create Service

Althea

System Requirements

Component
Minimum
Recommended

CPU

4 cores

8 cores

RAM

8 GB

16 GB

Storage

200 GB SSD

500 GB SSD

Internet

10 Mbps

100 Mbps

Preparation

First, set up your validator name:

MONIKER="YOUR_MONIKER_GOES_HERE"

Replace "YOUR_MONIKER_GOES_HERE" with your desired validator name.

Installation

Download and Build Binaries

  1. Clone the project repository:

cd $HOME
rm -rf althea
git clone https://github.com/althea-net/althea-L1 althea
cd althea
git checkout v1.2.0
  1. Build the binaries:

make install
  1. Prepare binaries for Cosmovisor:

mkdir -p .althea/cosmovisor/genesis/bin
mv ~/go/bin/althea .althea/cosmovisor/genesis/bin/
rm -rf build

Install Cosmovisor

Install Cosmovisor with the following command:

go install cosmossdk.io/tools/cosmovisor/cmd/cosmovisor@v1.4.0

Configuration

  1. Set node configuration:

althea config chain-id althea_258432-1
althea config node tcp://localhost:12457
  1. Initialize the node:

althea init $MONIKER --chain-id althea_258432-1
  1. Download genesis and addrbook:

curl -Ls https://raw.githubusercontent.com/AltheaFoundation/althea-L1-docs/main/althea-l1-mainnet-genesis.json > .althea/config/genesis.json
curl -Ls https://snapshots.lavenderfive.com/addrbooks/althea/addrbook.json > .althea/config/addrbook.json

Create Service

Create a service file for your Althea node:

sudo tee /etc/systemd/system/althea.service > /dev/null << EOF
[Unit]
Description=althea node service
After=network-online.target

[Service]
User=$USER
ExecStart=$(which cosmovisor) run start
WorkingDirectory=.althea
Restart=always
RestartSec=5
LimitNOFILE=65535
Environment="DAEMON_HOME=.althea"
Environment="DAEMON_NAME=althea"
Environment="DAEMON_ALLOW_DOWNLOAD_BINARIES=false"
Environment="DAEMON_RESTART_AFTER_UPGRADE=true"
Environment="UNSAFE_SKIP_BACKUP=true"
Environment="PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:.althea/cosmovisor/current/bin"

[Install]
WantedBy=multi-user.target
EOF

sudo systemctl daemon-reload
sudo systemctl enable althea

PreviousMitchelNodeNextHaqq

Last updated 7 months ago