Installation Guide for Allora Node
To install the Allora node, follow these steps:
Server Preparation
Update the system and install necessary packages: Open the terminal and run the commands:
sudo apt -q update
sudo apt -qy install curl git jq lz4 build-essential
sudo apt -qy upgrade
Install Go: Remove any previous version of Go (if any) and install the new one:
sudo rm -rf /usr/local/go
curl -Ls https://go.dev/dl/go1.19.8.linux-amd64.tar.gz | sudo tar -xzf - -C /usr/local
eval $(echo 'export PATH=$PATH:/usr/local/go/bin' | sudo tee /etc/profile.d/golang.sh)
eval $(echo 'export PATH=$PATH:$HOME/go/bin' | tee -a $HOME/.profile)
Downloading and Building Binaries
Clone the project repository:
cd $HOME
rm -rf allora
git clone https://github.com/allora-network/allora-chain.git allora
cd allora
git checkout v0.2.14
Prepare binaries for Cosmovisor:
mkdir -p .allorad/cosmovisor/genesis/bin
mv ~/go/bin/allorad .allorad/cosmovisor/genesis/bin/
rm -rf build
Node Configuration
Configure the node:
allorad config chain-id allora-testnet-1
allorad config node tcp://localhost:26757
Initialize the node: Replace YOUR_MONIKER_GOES_HERE
with your validator name:
MONIKER="YOUR_MONIKER_GOES_HERE"
allorad init $MONIKER --chain-id allora-testnet-1
Download genesis and addrbook:
curl -Ls https://raw.githubusercontent.com/allora-network/networks/main/allora-testnet-1/genesis.json > .allorad/config/genesis.json
curl -Ls https://snapshots.lavenderfive.com/testnet-addrbooks/allora/addrbook.json > .allorad/config/addrbook.json
Add seeds:
seeds="3d3b82e78875b4607c2612b530e835dffde77824@seed-0.edgenet.allora.network:32030,7f47aec3539715a70853589bd7ef8d2fd7995122@seed-1.edgenet.allora.network:32031"
sed -i -e "s|^seeds *=.*|seeds = \"$seeds\"|" .allorad/config/config.toml
Set minimum gas price:
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0uallo\"|" .allorad/config/app.toml
Configure pruning:
sed -i \
-e 's|^pruning *=.*|pruning = "custom"|' \
-e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \
-e 's|^pruning-keep-every *=.*|pruning-keep-every = "0"|' \
-e 's|^pruning-interval *=.*|pruning-interval = "19"|' \
.allorad/config/config.toml
Starting the Node
Check the node status: Ensure that the node is running correctly by checking the logs:
curl -so- http://localhost:26657/status | jq .result.sync_info.catching_up
Wait until you see the output: "catching_up": false
.
Last updated