Setup your node
Install pre requis
sudo apt-get update && sudo apt upgrade -y
sudo apt-get install make build-essential gcc git jq chrony -y
Install go
sudo rm -rf /usr/local/go
wget https://golang.org/dl/go1.19.1.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.19.1.linux-amd64.tar.gz
rm go1.19.1.linux-amd64.tar.gz
Setting up go
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export GO111MODULE=on
export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin
Install Node
Install the Cascadia node
binary by running the following commands
#from $HOME dir
git clone https://github.com/CascadiaFoundation/cascadia.git
cd cascadia
git fetch
git checkout v9.0.0
make install
To confirm that the node is well installed
cascadiad version
#v9.0.0
Setting up the Node
Initialization node
Please choose your MONIKER name and replace it in the next command, it will represent your node
cascadiad init MONIKER_NAME --chain-id cascadia_6102-1
This will generate severals files in ~/.cascadiad/config/
- node_key.json
- genesis.json
- priv_validator_key.json
Download and replace the genesis file
rm ~/.cascadiad/config/genesis.json
wget https://ss-t.cascadia.nodestake.top/genesis.json -O ~/.cascadiad/config/genesis.json
Set minimum gas prices
sed -i.bak -e "s/^minimum-gas-prices *=.*/minimum-gas-prices = \"0stake\"/" ~/.cascadiad/config/app.toml
Node connexion
In order to connect the node you can either use seeds
, lives peers
or address book
.
- Seeds
- Peers
- Addrbook
Set Seeds
Set Peers
PEERS = 4a7401f7d6daa39d331196d8cc179a4dcb11b5f9@143.198.110.221:26656,49a5a62543f5fec60db42b00d9ebe192c3185e15@143.198.97.96:26656,dccf886659c4afcb0cd4895ccd9f2804c7e7e1cd@143.198.101.61:26656
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.cascadiad/config/config.toml
Set Addrbook
Setup service file
[Unit]
Description="cascadia node"
[Service]
User=USER
ExecStart=$(which cascadiad) start
Restart=always
RestartSec=3
LimitNOFILE=4096
[Install]
WantedBy=multi-user.target
If you'd like to synchronise a node from a snapshot check the snapshot part
Start service file
systemctl daemon-reload
systemctl start cascadia.service | journalctl -u cascadia.service -f