Installation Node

  • Network Type: Testnet
  • Chain-id: sge-network-4
  • Current Node version: v1.1.1
  • 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/sge-network/sge
    cd sge
    git checkout v1.1.1
    make install

    Verify that you’ve installed sged successfully

    sged version

    Initialize Node

    Please change <MONIKER> To your own Moniker.

    sged init $MONIKER --chain-id sge-network-4
    sged config chain-id sge-network-4
    sged config keyring-backend test

    Download Genesis file and addrbook

    • Genesis
    wget -O $HOME/.sge/config/genesis.json "https://raw.githubusercontent.com/sge-network/networks/master/testnet/sge-network-4/genesis.json"
    • Addrbook
    wget -O $HOME/.sge/config/addrbook.json "https://raw.githubusercontent.com/vinjan23/Testnet.Guide/main/SGE/addrbook.json"

    Configure Seeds and Peers

    sed -i -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0usge\"/" $HOME/.sge/config/app.toml
    sed -i -e "s/^filter_peers *=.*/filter_peers = \"true\"/" $HOME/.sge/config/config.toml
    external_address=$(wget -qO- eth0.me) 
    sed -i.bak -e "s/^external_address *=.*/external_address = \"$external_address:26656\"/" $HOME/.sge/config/config.toml
    peers="6544694453634e97dbc47607f2e54031c80e1fc7@50.19.180.153:26656,31bda14eacbc1c1c537c4b7c2e8d338a06c8c5fd@57.128.37.47:26656,145d0f311ef1485f5b95eebecbc758fce01b4bb6@38.146.3.184:17756,c7545c27bd229b21056653cfc1c01b26add7656e@52.44.14.245:26656,51e4e7b04d2f669f5efa53e8d95891fa04e4c5b9@206.125.33.62:26656,a606813400988dc5176645d5e2a7dbc478e8e00b@34.87.20.73:26656,166a5f5d3377099d8d579f28fa8e4aa76eaa2084@52.44.14.245:26656,0b929c6a5c50c181c2e9385071fc9f89df3871b2@65.108.225.158:11756"
    sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.sge/config/config.toml
    seeds=""
    sed -i.bak -e "s/^seeds =.*/seeds = \"$seeds\"/" $HOME/.sge/config/config.toml
    sed -i 's/max_num_inbound_peers =.*/max_num_inbound_peers = 50/g' $HOME/.sge/config/config.toml
    sed -i 's/max_num_outbound_peers =.*/max_num_outbound_peers = 50/g' $HOME/.sge/config/config.toml

    config pruning

    pruning="custom" && \
    pruning_keep_recent="100" && \
    pruning_keep_every="0" && \
    pruning_interval="10" && \
    sed -i -e "s/^pruning *=.*/pruning = \"$pruning\"/" ~/.sge/config/app.toml && \
    sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"$pruning_keep_recent\"/" ~/.sge/config/app.toml && \
    sed -i -e "s/^pruning-keep-every *=.*/pruning-keep-every = \"$pruning_keep_every\"/" ~/.sge/config/app.toml && \
    sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"$pruning_interval\"/" ~/.sge/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/sged.service > /dev/null <<EOF
    [Unit]
    Description=sge-testnet
    After=network-online.target
    
    [Service]
    User=$USER
    ExecStart=$(which sged) 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 sged
    sudo systemctl restart sged
    sudo journalctl -u sged -f -o cat

    Create Validator

    Heads up to the Cheat Sheets to create validator