Chain ID: ojo-devnet | Node Version: v0.1.2
sudo apt update
sudo apt-get install git curl build-essential make jq gcc snapd chrony lz4 tmux unzip bc -y
rm -rf $HOME/go
sudo rm -rf /usr/local/go
cd $HOME
curl https://dl.google.com/go/go1.19.5.linux-amd64.tar.gz | sudo tar -C/usr/local -zxvf -
cat <<'EOF' >>$HOME/.profile
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
EOF
source $HOME/.profile
go version
cd $HOME
rm -rf ojo
git clone https://github.com/ojo-network/ojo.git
cd ojo
git checkout v0.1.2
make install
ojod version
Replace NodeName with your own moniker.
ojod init NodeName --chain-id=ojo-devnet
curl -Ls https://ss-t.ojo.nodestake.top/genesis.json > $HOME/.ojo/config/genesis.json
curl -Ls https://ss-t.ojo.nodestake.top/addrbook.json > $HOME/.ojo/config/addrbook.json
sudo tee /etc/systemd/system/ojod.service > /dev/null <<EOF
[Unit]
Description=ojod Daemon
After=network-online.target
[Service]
User=$USER
ExecStart=$(which ojod) start
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable ojod
SNAP_NAME=$(curl -s https://ss-t.ojo.nodestake.top/ | egrep -o ">20.*\.tar.lz4" | tr -d ">")
curl -o - -L https://ss-t.ojo.nodestake.top/${SNAP_NAME} | lz4 -c -d - | tar -x -C $HOME/.ojo
sudo systemctl restart ojod
journalctl -u ojod -f
If you have any questions, please reach out to our Discord
https://rpc-t.ojo.nodestake.top
https://api-t.ojo.nodestake.top
https://grpc-t.ojo.nodestake.top
https://ss-t.ojo.nodestake.top/genesis.json
https://ss-t.ojo.nodestake.top/addrbook.json
c2bce5d89c030583f1d465d7c9a40d1b4c347089@rpc-t.ojo.nodestake.top:666
seed="c2bce5d89c030583f1d465d7c9a40d1b4c347089@rpc-t.ojo.nodestake.top:666"
sed -i.bak -e "s/^seed *=.*/seed = \"$seed\"/" ~/.ojo/config/config.toml
sudo systemctl restart ojod
journalctl -u ojod -f
sudo systemctl stop ojod
ojod tendermint unsafe-reset-all --home ~/.ojo/ --keep-addr-book
SNAP_RPC="https://ojo-t.evmos.nodestake.top:443"
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - 1000)); \
TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash)
echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_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\"| ; \
s|^(seeds[[:space:]]+=[[:space:]]+).*$|\1\"\"|" ~/.ojo/config/config.toml
more ~/.ojo/config/config.toml | grep 'rpc_servers'
more ~/.ojo/config/config.toml | grep 'trust_height'
more ~/.ojo/config/config.toml | grep 'trust_hash'
sudo systemctl restart ojod
journalctl -u ojod -f
We make the node snapshot every day at 02:00 UTC+0
sudo apt update
sudo apt-get install snapd lz4 -y
sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1false|" ~/.ojo/config/config.toml
sudo systemctl stop ojod
cp $HOME/.ojo/data/priv_validator_state.json $HOME/.ojo/priv_validator_state.json.backup
rm -rf ~/.ojo/data
ojod tendermint unsafe-reset-all --home ~/.ojo/ --keep-addr-book
SNAP_NAME=$(curl -s https://ss-t.ojo.nodestake.top/ | egrep -o ">20.*\.tar.lz4" | tr -d ">")
curl -o - -L https://ss-t.ojo.nodestake.top/${SNAP_NAME} | lz4 -c -d - | tar -x -C $HOME/.ojo
mv $HOME/.ojo/priv_validator_state.json.backup $HOME/.ojo/data/priv_validator_state.json
sudo systemctl restart ojod
journalctl -u ojod -f
If you have any questions, please reach out to our Discord