February 20, 2023
Гайд по установке ноды Quasar
ℹ️ Наш Telegram-канал: https://t.me/pronodes
sudo apt-get update sudo apt-get install -y git wget jq curl
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 rm go1.19.2.linux-amd64.tar.gz export GOROOT=/usr/local/go export GOPATH=$HOME/go export GO111MODULE=on echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile && \ source $HOME/.bash_profile
wget -O quasarnoded https://github.com/quasar-finance/binary-release/raw/main/v0.0.2-alpha-11/quasarnoded-linux-amd64
chmod +x quasarnoded
mv quasarnoded /usr/local/bin
quasarnoded init <Имя ноды> --chain-id qsr-questnet-04
wget -O ~/.quasarnode/config/genesis.json https://raw.githubusercontent.com/quasar-finance/questnet/main/v04/definitive-genesis.json
8. Добавляем пир ноды для StateSync
[email protected]:26656 sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEER\"/" ~/.quasarnode/config/config.toml
SNAP_RPC="http://quasar.stakeme.io:26657" LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \ BLOCK_HEIGHT=$((LATEST_HEIGHT - 2000)); \ TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash) sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1true| ; \ s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\1\"$SNAP_RPC,$SNAP_RPC\"| ; \ s|^(trust_height[[:space:]]+=[[:space:]]+).*$|\1$BLOCK_HEIGHT| ; \ s|^(trust_hash[[:space:]]+=[[:space:]]+).*$|\1\"$TRUST_HASH\"|" $HOME/.quasarnode/config/config.toml
10. Настраиваем в файл app.toml snapshot interval в конце файла, без него запустить ноду не получиться
nano ~/.quasarnode/config/app.toml
После того, как нода синхронизируется, можно будет вернуть значение обратно.
sudo tee /etc/systemd/system/quasarnoded.service > /dev/null <<EOF [Unit] Description=Quasar Node After=network.target [Service] Type=simple User=$USER ExecStart=$(which quasarnoded) start Restart=always RestartSec=3 LimitNOFILE=10000 [Install] WantedBy=multi-user.target EOF
systemctl daemon-reload systemctl enable quasarnoded systemctl start quasarnoded
journalctl -fu quasarnoded -o cat
cd rm /usr/local/bin/quasarnoded rm /etc/systemd/system/quasarnoded.service rm -rf .quasarnode
👾 Наш валидатор - 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