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 -y
Install go
We are gonna use GO Version 1.20.2 If you already have GO installed you can skip this
ver="1.20.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
Install binary
cd $HOME
git clone https://github.com/terpnetwork/terp-core.git
cd terp-core/
git checkout barberry
make install
Initialize Node
Please change <MONIKER>
To your own Moniker.
terpd init $MONIKER --chain-id morocco-1
terpd config chain-id morocco-1
terpd config keyring-backend file
Download Genesis file and addrbook
- Genesis
curl -s https://raw.githubusercontent.com/terpnetwork/mainnet/main/morocco-1/genesis.json > $HOME/.terp/config/genesis.json
- Addrbook
wget -O $HOME/.terp/config/addrbook.json https://raw.githubusercontent.com/vinjan23/Mainnet/main/Terp/addrbook.json
Configure Seeds and Peers
SEEDS="c71e63b5da517984d55d36d00dc0dc2413d0ce03@seed.terp.network:26656"
PEERS=""
sed -i 's|^seeds *=.*|seeds = "'$SEEDS'"|; s|^persistent_peers *=.*|persistent_peers = "'$PEERS'"|' $HOME/.terp/config/config.toml
sed -i 's|^minimum-gas-prices *=.*|minimum-gas-prices = "0.000uterp"|g' $HOME/.terp/config/app.toml
sed -i 's|^prometheus *=.*|prometheus = true|' $HOME/.terp/config/config.toml
config pruning
PRUNING="custom"
PRUNING_KEEP_RECENT="100"
PRUNING_INTERVAL="19"
sed -i -e "s/^pruning *=.*/pruning = \"$PRUNING\"/" $HOME/.terp/config/app.toml
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \
\"$PRUNING_KEEP_RECENT\"/" $HOME/.terp/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \
\"$PRUNING_INTERVAL\"/" $HOME/.terp/config/app.toml
create service file and start node
Create service file Create a terpd.service
file in the /etc/systemd/system
folder with the following code. You can change USER
with your Linux user name. You need sudo previlege to do this step.
sudo tee /etc/systemd/system/terpd.service > /dev/null << EOF
[Unit]
Description=TerpNetwork Node
After=network-online.target
[Service]
User=$USER
ExecStart=$(which terpd) start
Restart=on-failure
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
- Start Node
sudo systemctl daemon-reload
sudo systemctl enable terpd
sudo systemctl restart terpd
sudo journalctl -u terpd -f -o cat
Create Validator
Heads up to the Cheat Sheets to create validator