Installation

Prerequiretes

Hardware
Minimun Spesification

CPU

4 Cores

RAM

16 GB

Disk

500GB SSD

Installation

Install Go

wget https://go.dev/dl/go1.23.6.linux-amd64.tar.gz
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.23.6.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
source ~/.profile
go version

Download binary file

git clone https://github.com/hippo-protocol/hippo-protocoL
cd hippo-protocoL
make install
cp $HOME/go/bin/hippod /usr/local/bin
hippod version

Initialize the node

hippod init <your-name> --chain-id hippo-protocol-1

Download genesis & addrbook

curl -L https://snapshot-2.provewithryd.xyz/hippo/genesis.json > $HOME/.hippo/config/genesis.json
curl -L https://snapshot-2.provewithryd.xyz/hippo/addrbook.json > $HOME/.hippo/config/addrbook.json

Configure Seeds and Peers

PEERS=$(curl -sS https://rpc-hippo.provewithryd.xyz/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr)"' | awk -F ':' '{print $1":"$(NF)}' | sed -z 's|\n|,|g;s|,$||')
sed -i -e "s|^persistent_peers *=.*|persistent_peers = '$PEERS'|" $HOME/.hippo/config/config.toml

Custumize Pruning

sed -i -e "s/^pruning *=.*/pruning = \"custom\"/" $HOME/.hippo/config/app.toml 
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"100\"/" $HOME/.hippo/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"20\"/" $HOME/.hippo/config/app.toml

Set Minumum Gas & Disable Indexer

sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0.0000001ahp\"|" $HOME/.hippo/config/app.toml
sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $HOME/.hippo/config/config.toml

Create Systemd Services

tee /etc/systemd/system/hippod.service > /dev/null <<EOF
[Unit]
Description=Hippo Protocol Mainnet Node
After=network-online.target

[Service]
User=root
WorkingDirectory=/root/.hippo
ExecStart=/usr/local/bin/hippod start
Restart=on-failure
RestartSec=5
LimitNOFILE=65535

[Install]
WantedBy=multi-user.target
EOF

Enable and Start Services

systemctl daemon-reexec
systemctl daemon-reload
systemctl enable hippod.service
systemctl start hippod.service

Last updated