Installation Node

  • Network Type: Testnet
  • Chain-id: elystestnet-1
  • Current Node version: v0.9.0
  • Hardware requirements

    The following requirements are recommended for running Defund:

    • 8 or more physical CPU cores
    • At least 1TB of SSD disk storage
    • At least 32GB 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.22.2 If you already have GO installed you can skip this

    ver="1.22.2"
    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/elys-network/elys
    cd elys
    git checkout v0.47.0
    make install

    Initialize Node

    Please change <MONIKER> To your own Moniker.

    elysd init $MONIKER --chain-id elystestnet-1
    elysd config chain-id elystestnet-1
    elysd config keyring-backend test

    Download Genesis file and addrbook

    • Genesis
    wget -O $HOME/.elys/config/genesis.json https://raw.githubusercontent.com/elys-network/elys/main/chain/genesis.json

    Configure Seeds and Peers

    seeds=""
    sed -i.bak -e "s/^seeds =.*/seeds = \"$seeds\"/" $HOME/.elys/config/config.toml
    peers=""
    sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.elys/config/config.toml
    sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0.0018ibc/2180E84E20F5679FCC760D8C165B60F42065DEF7F46A72B447CFF1B7DC6C0A65,0.00025ibc/E2D2F6ADCC68AA3384B2F5DFACCA437923D137C14E86FB8A10207CF3BED0C8D4,0.00025uelys\"|" $HOME/.elys/config/app.toml

    config pruning

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

    create service file and start node

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

    Create Validator

    Heads up to the Cheat Sheets to create validator