April 6, 2023
Гайд по установке OKB Chain
ℹ️ Наш Telegram-канал: https://t.me/pronodes
sudo apt update sudo apt install curl tar wget clang pkg-config libssl-dev libleveldb-dev jq build-essential bsdmainutils git make htop unzip bc htop -y
2. Устанавливаем Golang (версия не ниже 1.20)
wget https://golang.org/dl/go1.20.3.linux-amd64.tar.gz sudo tar -C /usr/local -xzf go1.20.3.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
3. Клонируем репозиторий и устанавливаем ноду
git clone https://github.com/okx/okbchain.git cd okbchain export GO111MODULE=on make rocksdb
make testnet
okbchaind init <Moniker> --chain-id okbchaintest-195
curl -S https://raw.githubusercontent.com/okx/okexchain-docs/okbchain-docs/resources/genesis-file/testnet/genesis.json > ~/.okbchaind/config/genesis.json
nano ~/.okbchaind/config/config.toml
7. Находим в файле строку seeds и добавляем значение
[email protected]:26656
sudo tee /etc/systemd/system/okbchaind.service > /dev/null <<EOF [Unit] Description=Okbchain After=network-online.target [Service] User=$USER ExecStart=$(which okbchaind) start --chain-id okbchaintest-195 Restart=always RestartSec=3 LimitNOFILE=infinity LimitNPROC=infinity [Install] WantedBy=multi-user.target EOF
systemctl daemon-reload systemctl enable okbchaind systemctl start okbchaind
journalctl -fu okbchaind -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