Installation Node

  • Network Type: Testnet
  • Chain-id: orbit-alpha-1
  • Current Node version: v0.2.6
  • 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
    rm -rf defund
    git clone https://github.com/defund-labs/defund.git
    cd defund
    git checkout v0.2.6
    make install

    Verify that you’ve installed Defundd successfully

    defundd version

    Initialize Node

    Please change <MONIKER> To your own Moniker.

    defundd init $MONIKER --chain-id orbit-alpha-1
    defundd config chain-id orbit-alpha-1
    defundd config keyring-backend test

    Download Genesis file and addrbook

    • Genesis
    curl -s https://raw.githubusercontent.com/defund-labs/testnet/main/orbit-alpha-1/genesis.json > ~/.defund/config/genesis.json
    • Addrbook
    curl -Ls https://snapshots.indonode.net/defund-t/addrbook.json > $HOME/.defund/config/addrbook.json

    Configure Seeds and Peers

    sed -i -e "s|^seeds *=.*|seeds = \"f902d7562b7687000334369c491654e176afd26d@170.187.157.19:26656,2b76e96658f5e5a5130bc96d63f016073579b72d@rpc-1.defund.nodes.guru:45656\"|" $HOME/.defund/config/config.toml
    peers="f902d7562b7687000334369c491654e176afd26d@170.187.157.19:26656,f8093378e2e5e8fc313f9285e96e70a11e4b58d5@rpc-2.defund.nodes.guru:45656,878c7b70a38f041d49928dc02418619f85eecbf6@rpc-3.defund.nodes.guru:45656,3594b1f46c6321d9f99cda8ad5ef5a367ce06ccf@199.247.16.116:26656"
    sed -i -e "s|^persistent_peers *=.*|persistent_peers = \"$peers\"|" $HOME/.defund/config/config.toml
    sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0ufetf\"|" $HOME/.defund/config/app.toml

    config pruning

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

    create service file and start node

    Create service file Create a defundd.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/defundd.service > /dev/null <<EOF
    [Unit]
    Description=defund
    After=network-online.target
    
    [Service]
    User=$USER
    ExecStart=$(which defundd) 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 defundd
    sudo systemctl restart defundd
    sudo journalctl -u defundd -f -o cat

    Create Validator

    Heads up to the Cheat Sheets to create validator