Installation
Prerequiretes
Hardware
Minimun Spesification
CPU
4 Cores
RAM
8 GB
Disk
200GB SSD
Installation
Install Go
wget https://go.dev/dl/go1.21.6.linux-amd64.tar.gz
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.21.6.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
source ~/.profile
go versionInstall Ignite
rm $(which ignite)
sudo curl https://get.ignite.com/[email protected]! | sudo bashDownload binary file
git clone https://github.com/dhealthproject/dhealth
cd dhealth
ignite chain build
cp $HOME/go/bin/dhealthd /usr/local/bin
dhealthd versionInitialize the node
dhealthd init <your-name> --chain-id dhealthDownload genesis & addrbook
curl -L https://snapshot-1.provewithryd.xyz/dhealth/genesis.json > $HOME/.dhealth/config/genesis.json
curl -L https://snapshot-1.provewithryd.xyz/dhealth/addrbook.json > $HOME/.dhealth/config/addrbook.jsonConfigure Seeds and Peers
PEERS=$(curl -sS https://rpc-dhealth.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/.dhealth/config/config.tomlCustumize Pruning
sed -i -e "s/^pruning *=.*/pruning = \"custom\"/" $HOME/.dhealth/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"100\"/" $HOME/.dhealth/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"20\"/" $HOME/.dhealth/config/app.tomlSet Minumum Gas & Disable Indexer
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"1udhp\"|" $HOME/.dhealth/config/app.toml
sed -i -e "s/^indexer *=.*/indexer = \"null\"/" $HOME/.dhealth/config/config.tomlCreate Systemd Services
tee /etc/systemd/system/dhealthd.service > /dev/null <<EOF
[Unit]
Description=Dhealth Mainnet Node
After=network-online.target
[Service]
User=root
WorkingDirectory=/root/.dhealth
ExecStart=/usr/local/bin/dhealthd start --home /root/.dhealth
Restart=on-failure
RestartSec=5
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOFEnable and Start Services
systemctl daemon-reexec
systemctl daemon-reload
systemctl enable dhealthd.service
systemctl start dhealthd.serviceLast updated