Installation Node

  • Network Type: Testnet
  • Chain-id: ojo-devnet
  • Current Node version: v0.1.2
  • Hardware requirements

    The following requirements are recommended for running Defund:

    • 4 or more physical CPU cores
    • At least 200GB of SSD disk storage
    • At least 8GB of memory (RAM)
    • At least 100mbps network bandwidth

    Install dependencies Required

    sudo apt update && sudo apt upgrade -y && sudo apt install curl tar wget clang pkg-config libssl-dev jq build-essential bsdmainutils git make ncdu gcc git jq chrony liblz4-tool -y

    Install go

    We are gonna use GO Version 1.19.5 If you already have GO installed you can skip this

    ver="1.19.5"
    cd $HOME
    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"
    echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> ~/.bash_profile
    source ~/.bash_profile
    go version

    Install binary

    cd $HOME
    git clone https://github.com/ojo-network/ojo.git
    cd ojo
    git checkout v0.1.2
    make install

    Verify that you’ve installed ojod successfully

    ojod version

    Initialize Node

    Please change <MONIKER> To your own Moniker.

    ojod init $MONIKER --chain-id ojo-devnet
    ojod config chain-id ojo-devnet
    ojod config keyring-backend test

    Download Genesis file and addrbook

    • Genesis
    curl -s https://rpc.devnet-n0.ojo-devnet.node.ojo.network/genesis | jq -r .result.genesis > $HOME/.ojo/config/genesis.json
    • Addrbook
    wget -O $HOME/.ojo/config/addrbook.json "https://raw.githubusercontent.com/vinjan23/Testnet.Guide/main/Ojo/addrbook.json"

    Configure Seeds and Peers

    peer="239caa37cb0f131b01be8151631b649dc700cd97@95.217.200.36:46656,0465032114df76df206c9983968f2d229b3a50d6@88.198.32.17:39656,2c40b0aedc41b7c1b20c7c243dd5edd698428c41@138.201.85.176:26696,ac5089a8789736e2bc3eee0bf79ca04e22202bef@162.55.80.116:29656,8671c2dbbfd918374292e2c760704414d853f5b7@35.215.121.109:26656,7416a65de3cc548a537db,8bdf93dbd83fe401d2@78.107.234.44:26656,62fa77951a7c8f323c0499fff716cd86932d8996@65.108.199.36:24214,5af3d50dcc231884f3d3da3e3caecb0deef1dc5b@142.132.134.112:25356,1145755896d6a3e9df2f130cc2cbd223cdb206f0@209.145.53.163:29656,408ee86160af26ee7204d220498e80638f7874f4@161.97.109.47:38656"
    sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.ojo/config/config.toml
    SEEDS="ade4d8bc8cbe014af6ebdf3cb7b1e9ad36f412c0@testnet-seeds.polkachu.com:21656"
    sed -i -e "s|^seeds *=.*|seeds = \"$SEEDS\"|" $HOME/.ojo/config/config.toml

    Set minimum-gas-prices

    sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0uojo\"|" $HOME/.ojo/config/app.toml

    config pruning

    PRUNING="custom"
    PRUNING_KEEP_RECENT="100"
    PRUNING_INTERVAL="19"
    sed -i -e "s/^pruning *=.*/pruning = \"$PRUNING\"/" $HOME/.ojo/config/app.toml
    sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \
    \"$PRUNING_KEEP_RECENT\"/" $HOME/.ojo/config/app.toml
    sed -i -e "s/^pruning-interval *=.*/pruning-interval = \
    \"$PRUNING_INTERVAL\"/" $HOME/.ojo/config/app.toml

    create service file and start node

    Create service file Create a ojod.service file in the /etc/systemd/system folder with the following code. You can change USER with your Linux user name. You need sudo previlege to do this step.

    sudo tee /etc/systemd/system/ojod.service > /dev/null <<EOF
    [Unit]
    Description=ojod
    After=network-online.target
    
    [Service]
    User=$USER
    ExecStart=$(which ojod) start
    Restart=on-failure
    RestartSec=3
    LimitNOFILE=65535
    
    [Install]
    WantedBy=multi-user.target
    EOF
    • Enable Service and Start Node
    sudo systemctl daemon-reload
    sudo systemctl enable ojod
    sudo systemctl restart ojod
    sudo journalctl -fu ojod -o cat

    Create Validator

    Heads up to the Cheat Sheets to create validator