Installation

Auto Install

Manual Installation

Update depedencies

sudo apt update && sudo apt upgrade -y
sudo apt install curl iptables build-essential git wget jq make gcc nano tmux htop nvme-cli pkg-config libssl-dev libleveldb-dev tar clang bsdmainutils ncdu unzip libleveldb-dev aria2 -y

Install GO if needed

ver="1.22.3"
cd $HOME
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" >> ~/.bash_profile
source ~/.bash_profile
go version

Sett Vars

change MONIKER="Moniker"" with your own moniker and change HELIADES_PORT="33"" to your own port

echo "export WALLET="wallet"" >> $HOME/.bash_profile
echo "export MONIKER="Moniker"" >> $HOME/.bash_profile
echo "export HELIADES_CHAIN_ID="helios-testnet"" >> $HOME/.bash_profile
echo "export HELIADES_PORT="33"" >> $HOME/.bash_profile
source $HOME/.bash_profile

Install Binary

cd $HOME
curl -LO https://github.com/helios-network/helios-core/releases/latest/download/heliades-linux-amd64 -o heliades
chmod +x heliades 
sudo mv heliades /usr/local/bin/

Initialize Node

heliades init $MONIKER --chain-id empe-testnet-2
heliades config chain-id $HELIADES_CHAIN_ID
heliades config keyring-backend os
heliades config node tcp://localhost:${HELIADES_PORT}657

Download Genesis and Addrbook

WAIT UPDATE!!!

Configure seed

WAIT UPDATE!!!

Configure Pruning

sed -i \
  -e 's|^pruning *=.*|pruning = "custom"|' \
  -e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \
  -e 's|^pruning-interval *=.*|pruning-interval = "17"|' \
  $HOME/.heliades/config/app.toml

Sett gas price enable prometheus and disable indexing

sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0.1ahelios\"|" $HOME/.heliades/config/app.toml
sed -i -e "s/prometheus = false/prometheus = true/" $HOME/.heliades/config/config.toml
sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $HOME/.heliades/config/config.toml

Costumize port in app.toml

sed -i.bak -e "s%:1317%:${HELIADES_PORT}317%g;
s%:8080%:${HELIADES_PORT}080%g;
s%:9090%:${HELIADES_PORT}090%g;
s%:9091%:${HELIADES_PORT}091%g;
s%:8545%:${HELIADES_PORT}545%g;
s%:8546%:${HELIADES_PORT}546%g;
s%:6065%:${HELIADES_PORT}065%g" $HOME/.heliades/config/app.toml

Costumize port in config.toml

sed -i.bak -e "s%:26658%:${HELIADES_PORT}658%g;
s%:26657%:${HELIADES_PORT}657%g;
s%:6060%:${HELIADES_PORT}060%g;
s%:26656%:${HELIADES_PORT}656%g;
s%^external_address = \"\"%external_address = \"$(wget -qO- eth0.me):${EMPED_PORT}656\"%;
s%:26660%:${EMPED_PORT}660%g" $HOME/.heliades/config/config.toml

Create service

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

Download Snapshot

WAIT UPDATE!!!

Enable Service and start node

sudo systemctl daemon-reload
sudo systemctl enable heliades.service
sudo systemctl restart heliades.service && sudo journalctl -u heliades.service -f --no-hostname -o cat

Last updated