Skip to content

Latest commit

 

History

History
80 lines (65 loc) · 3.36 KB

README.md

File metadata and controls

80 lines (65 loc) · 3.36 KB

Visit Our Website : NodeX Capital Official


Cascadia Testnet | Chain ID : cascadia_6102-1 | Custom Port : 220

Community Documentation:

Explorer:

Automatic Installer

You can setup your cascadia fullnode in few minutes by using automated script below.

wget -O cascadia.sh https://raw.githubusercontent.com/nodexcapital/testnet/main/cascadia/cascadia.sh && chmod +x cascadia.sh && ./cascadia.sh

Public Endpoint

Snapshot

sudo systemctl stop cascadiad
cp $HOME/.cascadiad/data/priv_validator_state.json $HOME/.cascadiad/priv_validator_state.json.backup
rm -rf $HOME/.cascadiad/data

curl -L https://snap.nodexcapital.com/cascadia/cascadia-latest.tar.lz4 | tar -Ilz4 -xf - -C $HOME/.cascadiad/
mv $HOME/.cascadiad/priv_validator_state.json.backup $HOME/.cascadiad/data/priv_validator_state.json

sudo systemctl start cascadiad && sudo journalctl -fu cascadiad -o cat

State Sync

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

SNAP_RPC="https://rpc.cascadia-t.nodexcapital.com:443"

LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - 2000)); \
TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.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\"|" $HOME/.cascadiad/config/config.toml

sudo systemctl start cascadiad && sudo journalctl -fu cascadiad -o cat

Disable State Sync

After successful synchronization using state sync above, we advise you to disable synchronization with state sync and restart the node

sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1false|" $HOME/.cascadiad/config/config.toml
sudo systemctl restart cascadiad && journalctl -u cascadiad -f -o cat

Live Peers

PEERS="$(curl -sS https://rpc.cascadia-t.nodexcapital.com/net_info | jq -r '.result.peers[] | "\(.node_info.id)@\(.remote_ip):\(.node_info.listen_addr)"' | awk -F ':' '{print $1":"$(NF)}' | sed -z 's|\n|,|g;s|.$||')"
sed -i -e "s|^persistent_peers *=.*|persistent_peers = \"$PEERS\"|" $HOME/.cascadiad/config/config.toml

Addrbook

curl -Ls https://snap.nodexcapital.com/cascadia/addrbook.json > $HOME/.cascadiad/config/addrbook.json

Genesis

curl -Ls https://snap.nodexcapital.com/cascadia/genesis.json > $HOME/.cascadiad/config/genesis.json