Installation Node

  • Network Type: Testnet
  • Chain-id: cascadia_11029-1
  • Current Node version: v0.1.9
  • 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.20.6 If you already have GO installed you can skip this

    ver="1.20.6"
    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/CascadiaFoundation/cascadia.git
    cd cascadia
    git checkout v0.1.9
    make install

    Verify that you’ve installed cascadiad successfully

    cascadiad version

    Initialize Node

    Please change <YOUR_MONIKER> To your own Moniker.

    cascadiad init $MONIKER --chain-id cascadia_11029-1
    cascadiad config chain-id cascadia_11029-1
    cascadiad config keyring-backend test

    Download Genesis file and addrbook

    • Genesis
    wget -O $HOME/.cascadiad/config/genesis.json "https://raw.githubusercontent.com/vinjan23/Testnet.Guide/main/Cascadia/genesis.json"
    • Addrbook
    wget -O $HOME/.cascadiad/config/addrbook.json "https://raw.githubusercontent.com/vinjan23/Testnet.Guide/main/Cascadia/addrbook.json"

    Configure Seeds and Peers and Gas

    sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.025aCC\"/;" ~/.cascadiad/config/app.toml
    peers="d1ed80e232fc2f3742637daacab454e345bbe475@54.204.246.120:26656,0c96a6c328eb58d1467afff4130ab446c294108c@34.239.67.55:26656"
    sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.cascadiad/config/config.toml
    seeds=""
    sed -i.bak -e "s/^seeds =.*/seeds = \"$seeds\"/" $HOME/.cascadiad/config/config.toml
    sed -i 's/max_num_inbound_peers =.*/max_num_inbound_peers = 50/g' $HOME/.cascadiad/config/config.toml
    sed -i 's/max_num_outbound_peers =.*/max_num_outbound_peers = 50/g' $HOME/.cascadiad/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\"/" $HOME/.cascadiad/config/app.toml
    sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"$pruning_keep_recent\"/" $HOME/.cascadiad/config/app.toml
    sed -i -e "s/^pruning-keep-every *=.*/pruning-keep-every = \"$pruning_keep_every\"/" $HOME/.cascadiad/config/app.toml
    sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"$pruning_interval\"/" $HOME/.cascadiad/config/app.toml

    create service file and start node

    Create service file Create a cascadiad.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/cascadiad.service > /dev/null <<EOF
    [Unit]
    Description=cascadia
    After=network-online.target
    
    [Service]
    User=$USER
    ExecStart=$(which cascadiad) start --chain-id=cascadia_11029-1
    Restart=on-failure
    RestartSec=3
    LimitNOFILE=65535
    
    [Install]
    WantedBy=multi-user.target
    EOF

    sudo systemctl daemon-reload sudo systemctl enable cascadiad

    
    ### Download Latest Snapshot

    curl -L https://snap.vinjan.xyz/cascadia/cascadia-snapshot-20231207.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.cascadiad sudo systemctl restart cascadiad journalctl -fu cascadiad -o cat

    Create Validator

    Heads up to the Cheat Sheets to create validator