Install cascadia node


banner


Useful links


Minimum System Requirements

  • 2 x dedicated/physical CPUs withSSE4.1 and SSE4.2 flags (use lscpuopen_in_new to verify)
  • 8 GB RAM
  • 200 GB SSD
  • 100 Mbit/s always-on internet connection with 4 TB/month data plan
  • Linux OS (Ubuntu 20.04 or the latest version is recommended)

Prepare a server

UPDATE AND INSTALL PACKAGES

sudo apt update && sudo apt upgrade -y && \
sudo apt install curl tar wget pkg-config libssl-dev libleveldb-dev jq build-essential bsdmainutils git make unzip bc  -y

INSTALLING GO v1.19.4

cd $HOME && \
ver="1.19.4" && \
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" >> $HOME/.bash_profile && \
source $HOME/.bash_profile && \
go version

Installation

INSTALL LAST BINARY

git clone https://github.com/CascadiaFoundation/cascadia
cd cascadia
git checkout v0.1.1
make install

INIT CONFIG

cascadiad init <moniker> --chain-id cascadia_6102-1
cascadiad config chain-id cascadia_6102-1

DOWNLOAD GENESIS

curl -LO https://github.com/CascadiaFoundation/chain-configuration/raw/master/testnet/genesis.json.gz
gunzip genesis.json.gz
cp genesis.json ~/.cascadiad/config/

ADD PEERS

sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$(curl  https://raw.githubusercontent.com/CascadiaFoundation/chain-configuration/master/testnet/persistent_peers.txt)\"/" ~/.cascadiad/config/config.toml

SET MINIMUM GAS PRICE

sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0.0025aCC\"/" ~/.cascadiad/config/app.toml

CREATE SERVICE FILE

sudo tee /etc/systemd/system/cascadiad.service > /dev/null <<EOF
[Unit]
Description=Cascadia
After=network-online.target

[Service]
User=$USER
ExecStart=$(which cascadiad) start
Restart=always
RestartSec=3
LimitNOFILE=4096

[Install]
WantedBy=multi-user.target
EOF

SERVICE FILE ACTIVATION

sudo systemctl daemon-reload && \
sudo systemctl enable cascadiad && \
sudo systemctl restart cascadiad

CHECK LOGS

journalctl -fu cascadiad -o cat

Creating a validator

CREATE WALLET

cascadiad keys add <wallet_name>

CONVERT ADDRESS TO EMV

cascadiad address-converter <wallet_address>

CREATE A VALIDATOR

cascadiad tx staking create-validator \
  --amount=1000000000000000000aCC \
  --pubkey=$(cascadiad tendermint show-validator) \
  --moniker="<moniker>" \
  --identity="<identity>" \
  --website="<website>" \
  --details="<details>" \
  --security-contact="<contact>" \
  --chain-id="cascadia_6102-1" \
  --commission-rate="0.10" \
  --commission-max-rate="0.20" \
  --commission-max-change-rate="0.01" \
  --min-self-delegation="1" \
  --gas "auto" \
  --gas-adjustment=1.2 \
  --gas-prices="7aCC" \
  --from=<wallet_name>

medium telegram twitter email web