Testnet

Chain ID: cascadia_11029-1 | Node Version: v0.3.0

Node Installation Guide

Update system and install build tools

sudo apt update

sudo apt-get install git curl build-essential make jq gcc snapd chrony lz4 tmux unzip bc -y

Install Go

rm -rf $HOME/go
sudo rm -rf /usr/local/go
cd $HOME
curl https://dl.google.com/go/go1.20.5.linux-amd64.tar.gz | sudo tar -C/usr/local -zxvf -
cat <<'EOF' >>$HOME/.profile
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
EOF
source $HOME/.profile
go version

Install Node

cd $HOME

rm -rf cascadia

git clone https://github.com/CascadiaFoundation/cascadia.git

cd cascadia

git checkout v0.3.0

make install

cascadiad version

Initialize Node

Replace NodeName with your own moniker.

cascadiad init NodeName --chain-id=cascadia_11029-1

Download Genesis

curl -Ls https://ss-t.cascadia.nodestake.top/genesis.json > $HOME/.cascadiad/config/genesis.json 

Download addrbook

curl -Ls https://ss-t.cascadia.nodestake.top/addrbook.json > $HOME/.cascadiad/config/addrbook.json

Create Service

sudo tee /etc/systemd/system/cascadiad.service > /dev/null <<EOF
[Unit]
Description=cascadiad Daemon
After=network-online.target
[Service]
User=$USER
ExecStart=$(which cascadiad) start
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable cascadiad

Download Snapshot(optional)

SNAP_NAME=$(curl -s https://ss-t.cascadia.nodestake.top/ | egrep -o ">20.*\.tar.lz4" | tr -d ">")

curl -o - -L https://ss-t.cascadia.nodestake.top/${SNAP_NAME}  | lz4 -c -d - | tar -x -C $HOME/.cascadiad

Launch Node

sudo systemctl restart cascadiad
journalctl -u cascadiad -f

If you have any questions, please reach out to our Discord

 

https://rpc-t.cascadia.nodestake.top

 

https://api-t.cascadia.nodestake.top

 

https://grpc-t.cascadia.nodestake.top

Chain Name: Cascadia Testnet
RPC: https://jsonrpc-t.cascadia.nodestake.top/
Chain ID: 6102
Symbol: CC
Explorer: 

https://ss-t.cascadia.nodestake.top/genesis.json

Download Genesis File

curl -Ls https://ss-t.cascadia.nodestake.top/genesis.json > $HOME/.cascadiad/config/genesis.json 

https://ss-t.cascadia.nodestake.top/addrbook.json

Download Addrbook

curl -Ls https://ss-t.cascadia.nodestake.top/addrbook.json > $HOME/.cascadiad/config/addrbook.json 

Restart Node

sudo systemctl restart cascadiad
journalctl -u cascadiad -f

4c323f317be01b4ecc953891204f05bc6afef8cb@rpc-t.cascadia.nodestake.top:666

Set Seed Node

seed="4c323f317be01b4ecc953891204f05bc6afef8cb@rpc-t.cascadia.nodestake.top:666"
sed -i.bak -e "s/^seed *=.*/seed = \"$seed\"/" ~/.cascadiad/config/config.toml

Restart Node

sudo systemctl restart cascadiad
journalctl -u cascadiad -f

Set Peers

peers=$(curl -s https://ss-t.cascadia.nodestake.top/peers.txt)
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" ~/.cascadiad/config/config.toml

Restart Node

sudo systemctl restart cascadiad
journalctl -u cascadiad -f

Stop Node And Reset

sudo systemctl stop cascadiad

cascadiad tendermint unsafe-reset-all --home ~/.cascadiad/ --keep-addr-book

Configure State Sync

SNAP_RPC="https://rpc-t.cascadia.nodestake.top:443"

LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \

BLOCK_HEIGHT=$((LATEST_HEIGHT - 1000)); \

TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash)

echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH

 

sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1true| ; \

s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\1\"$SNAP_RPC,$SNAP_RPC\"| ; \

s|^(trust_height[[:space:]]+=[[:space:]]+).*$|\1$BLOCK_HEIGHT| ; \

s|^(trust_hash[[:space:]]+=[[:space:]]+).*$|\1\"$TRUST_HASH\"| ; \

s|^(seeds[[:space:]]+=[[:space:]]+).*$|\1\"\"|" ~/.cascadiad/config/config.toml

more ~/.cascadiad/config/config.toml | grep 'rpc_servers'

more ~/.cascadiad/config/config.toml | grep 'trust_height'

more ~/.cascadiad/config/config.toml | grep 'trust_hash'

Restart Node

sudo systemctl restart cascadiad
journalctl -u cascadiad -f

We make the node snapshot every 6h

Install lz4

sudo apt update

sudo apt-get install snapd lz4 -y

Off State Sync

sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1false|" ~/.cascadiad/config/config.toml

Stop Node and Reset Date

sudo systemctl stop cascadiad

cp $HOME/.cascadiad/data/priv_validator_state.json $HOME/.cascadiad/priv_validator_state.json.backup

rm -rf ~/.cascadiad/data

cascadiad tendermint unsafe-reset-all --home ~/.cascadiad/ --keep-addr-book

Download Snapshot

SNAP_NAME=$(curl -s https://ss-t.cascadia.nodestake.top/ | egrep -o ">20.*\.tar.lz4" | tr -d ">")

curl -o - -L https://ss-t.cascadia.nodestake.top/${SNAP_NAME}  | lz4 -c -d - | tar -x -C $HOME/.cascadiad

mv $HOME/.cascadiad/priv_validator_state.json.backup $HOME/.cascadiad/data/priv_validator_state.json

Restart Node

sudo systemctl restart cascadiad
journalctl -u cascadiad -f

If you have any questions, please reach out to our Discord