Installation
Installation
Install Dependencies
sudo apt update && sudo apt upgrade -y
sudo apt install -y git gcc make unzip jq
Install GO if needed
ver="1.23.2"
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 HIPPOD_PORT="14"" to your own port
echo "export WALLET="wallet"" >> $HOME/.bash_profile
echo "export MONIKER="Moniker"" >> $HOME/.bash_profile
echo "export HIPPOD_CHAIN_ID="hippo-protocol-1"" >> $HOME/.bash_profile
echo "export HIPPOD_PORT="14"" >> $HOME/.bash_profile
source $HOME/.bash_profile
Install Binary
cd $HOME
git clone https://github.com/hippocrat-dao/hippo-protocol hippo
cd hippo
git checkout main
make install
Initialize Node
hippod init $MONIKER --chain-id hippo-protocol-1
hippod config chain-id $HIPPOD_CHAIN_ID
hippod config keyring-backend os
hippod config node tcp://localhost:${HIPPOD_PORT}657
Download Genesis and Addrbook
curl -L https://snapshot.sychonix.com/mainnet/hippo/genesis.json > $HOME/.hippo/config/genesis.json
curl -L https://snapshot.sychonix.com/mainnet/hippo/addrbook.json > $HOME/.hippo/config/addrbook.json
Configure seed
SEEDS="a840f904e753880c6fe23c1ee7a6106517b0e58f@hippo.nodevism.com:29656,f94b1ad39835a9ce9fe9f6a83ca528d9be6ba276@hippo-mainnet.sychonix.com:12556"
PEERS="$(curl -sS https://rpc.hippo.nodevism.com/net_info | jq '.result.peers[] | "\(node_id: .node_info.id, address: .remote_ip, moniker: .node_info.moniker)"' | awk -F ':' '{print $1":"$(NF)}' | sed -z 's|\n|,|g;s|.$||')"
sed -i -e "s|^seeds *=.*|seeds = '"$SEEDS"'|; s|^persistent_peers *=.*|persistent_peers = '"$PEERS"'|" $HOME/.hippo/config/config.toml
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/.hippo/config/app.toml
Sett gas price enable prometheus and disable indexing
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0.001ahp\"|" $HOME/.hippo/config/app.toml
sed -i -e "s/prometheus = false/prometheus = true/" $HOME/.hippo/config/config.toml
sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $HOME/.hippo/config/config.toml
Costumize port in app.toml
sed -i.bak -e "s%:1317%:${HIPPOD_PORT}317%g;
s%:8080%:${HIPPOD_PORT}080%g;
s%:9090%:${HIPPOD_PORT}090%g;
s%:9091%:${HIPPOD_PORT}091%g;
s%:8545%:${HIPPOD_PORT}545%g;
s%:8546%:${HIPPOD_PORT}546%g;
s%:6065%:${HIPPOD_PORT}065%g" $HOME/.hippo/config/app.toml
Costumize port in config.toml
sed -i.bak -e "s%:26658%:${HIPPOD_PORT}658%g;
s%:26657%:${HIPPOD_PORT}657%g;
s%:6060%:${HIPPOD_PORT}060%g;
s%:26656%:${HIPPOD_PORT}656%g;
s%^external_address = \"\"%external_address = \"$(wget -qO- eth0.me):${HIPPOD_PORT}656\"%;
s%:26660%:${HIPPOD_PORT}660%g" $HOME/.hippo/config/config.toml
Create service
sudo tee /etc/systemd/system/hippod.service > /dev/null <<EOF
[Unit]
Description=hippod node service
After=network-online.target
[Service]
User=$USER
ExecStart=$(which hippod) start
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
Download Snapshot
curl "https://snapshot.sychonix.com/mainnet/hippo/hippo-snapshot.tar.lz4" | lz4 -dc - | tar -xf - -C "$HOME/.hippo"
Enable Service and start node
sudo systemctl daemon-reload
sudo systemctl enable hippod.service
sudo systemctl restart hippod.service && sudo journalctl -u hippod.service -f --no-hostname -o cat
Last updated