March 23, 2023

Гайд по установке ноды DeFund

ℹ️ Наш Telegram-канал: https://t.me/pronodes

Требования к серверу

  • 4 CPU Cores
  • 500GB SSD
  • 16GB RAM

1. Подготавливаем сервер

wget https://golang.org/dl/go1.19.2.linux-amd64.tar.gz 
sudo tar -C /usr/local -xzf go1.19.2.linux-amd64.tar.gz 
export GOROOT=/usr/local/go 
export GOPATH=$HOME/go 
export GO111MODULE=on 
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin 
go version 
sudo apt install git build-essential ufw curl jq snapd --yes

2. Скачиваем репозиторий и устанавливаем ноду

git clone https://github.com/defund-labs/defund
cd defund
git checkout v0.2.6
make install

3. Инициализируем ноду

defundd config chain-id orbit-alpha-1
defundd init <Имя ноды>

4. Скачиваем генезис

curl -s https://raw.githubusercontent.com/defund-labs/testnet/main/defund-private-4/genesis.json > ~/.defund/config/genesis.json

5. Добавляем пиры

PEERS="[email protected]:30791,[email protected]:26656,[email protected]:56656,[email protected]:17000"
sed -i -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.defund/config/config.toml

6. Создаем сервисный файл

sudo tee /etc/systemd/system/defund.service > /dev/null <<EOF
[Unit]
Description=Defund daemon
After=network-online.target
[Service]
User=$USER
ExecStart=${HOME}/go/bin/defundd start
Restart=always
RestartSec=3
LimitNOFILE=infinity
LimitNPROC=infinity
[Install]
WantedBy=multi-user.target
EOF

7. Запускаем ноду

sudo systemctl daemon-reload
sudo systemctl enable defund
sudo systemctl start defund

8. Проверяем логи

sudo journalctl -fu defund -o cat

👾 Наш валидатор - https://stakeme.io/

🔥 New-Ноды под ключ-https://nodesme.io

💬 Чат- https://t.me/+IhRoXgkqO28yNDVi

✅ Twitter (eng) - https://twitter.com/ProNodes_val

✅ Twitter (ru) - https://twitter.com/pro_nodes

✅ Teletype (eng) - https://teletype.in/@stakeme.io

✅ Teletype (ru) - https://teletype.in/@pronodes

✅ Mirror (eng) -https://mirror.xyz/0x58fC64C4d35049dD0Da5a762E325c6B1D9bC9Fa0

✅ Our telegram - https://t.me/pronodes