May 23, 2023
Гайд по установке Ojo
sudo apt update sudo apt install -y curl git jq lz4 build-essential unzip
ver="1.20.3" && \ 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" && \cd echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile && \ source $HOME/.bash_profile
git clone https://github.com/ojo-network/ojo cd ojo git checkout v0.1.2 make install
ojod init <Моникер> --chain-id ojo-devnet
curl -Ls https://rpc.devnet-n0.ojo-devnet.node.ojo.network/genesis > $HOME/.ojo/config/genesis.json
SNAP_RPC="https://ojo-testnet.nodejumper.io:443" 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) echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH PEERS="17a5fad48064ee3da42f435925f7bbe055e6348d@ojo-testnet.nodejumper.io:37656" sed -i 's|^persistent_peers *=.*|persistent_peers = "'$PEERS'"|' $HOME/.ojo/config/config.toml sed -i 's|^enable *=.*|enable = true|' $HOME/.ojo/config/config.toml sed -i 's|^rpc_servers *=.*|rpc_servers = "'$SNAP_RPC,$SNAP_RPC'"|' $HOME/.ojo/config/config.toml sed -i 's|^trust_height *=.*|trust_height = '$BLOCK_HEIGHT'|' $HOME/.ojo/config/config.toml sed -i 's|^trust_hash *=.*|trust_hash = "'$TRUST_HASH'"|' $HOME/.ojo/config/config.toml
sudo tee /etc/systemd/system/ojod.service > /dev/null << EOF [Unit] Description=Ojo Node After=network-online.target [Service] User=$USER ExecStart=$(which ojod) start Restart=on-failure RestartSec=10 LimitNOFILE=10000 [Install] WantedBy=multi-user.target EOF
sudo systemctl daemon-reload sudo systemctl enable ojod sudo systemctl start ojod
sudo journalctl -fu ojod -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