Installation Node
Hardware requirements
The following requirements are recommended for running Defund:
- 4 or more physical CPU cores
- At least 200GB of SSD disk storage
- At least 8GB of memory (RAM)
- At least 100mbps network bandwidth
Install dependencies Required
sudo apt update && sudo apt upgrade -y && sudo apt install curl tar wget clang pkg-config libssl-dev jq build-essential bsdmainutils git make ncdu gcc git jq chrony liblz4-tool -yInstall go
We are gonna use GO Version 1.23.4 If you already have GO installed you can skip this
ver="1.23.0"
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 versionInstall binary
wget https://snapshot.vinjan-inc.com/sunima/sunimad
chmod +x sunimad
mv sunimad /usr/local/bin/sunimadInitialize Node
Please change <MONIKER> To your own Moniker.
sunimad init <MONIKER> --chain-id sunima_8081-1Download Genesis file and addrbook
- Genesis
curl -L https://snapshot.vinjan-inc.com/sunima/genesis.json > $HOME/.sunima/config/genesis.json- Addrbook
curl -L https://snapshot.vinjan-inc.com/sunima/addrbook.json > $HOME/.sunima/config/addrbook.jsonConfigure Gas and Peers
peers="170efaccae1a7b691799c56e80d250184b445ac3@95.216.102.220:13456,016023a6dd169797a2bda97c3ed340f23426df4d@152.53.129.135:26656"
sed -i -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.sunima/config/config.toml
sed -i -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.025stake\"/" $HOME/.sunima/config/app.tomlPrunning
sed -i \
-e 's|^pruning *=.*|pruning = "default"|' \
-e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "0"|' \
-e 's|^pruning-keep-every *=.*|pruning-keep-every = ""|' \
-e 's|^pruning-interval *=.*|pruning-interval = "0"|' \
$HOME/.sunima/config/app.tomlIndexer Off
sed -i 's|^indexer *=.*|indexer = "null"|' $HOME/.sunima/config/config.tomlcreate service file and start node
sudo tee /etc/systemd/system/sunimad.service > /dev/null <<EOF
[Unit]
Description=sunima
After=network-online.target
[Service]
User=$USER
ExecStart=$(which sunimad) start
Restart=on-failure
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF- Enable Service and Start Node
sudo systemctl daemon-reload
sudo systemctl enable sunimadSnapshot
sudo systemctl restart sunimad
sudo journalctl -u sunimad -f -o cat