April 21, 2023
Гайд по установке ноды Cascadia
ℹ️ Наш Telegram-канал: https://t.me/pronodes
apt update && apt upgrade -y apt install curl iptables build-essential git wget jq make gcc nano tmux htop nvme-cli pkg-config libssl-dev libleveldb-dev tar clang bsdmainutils ncdu unzip libleveldb-dev -y
ver="1.20.3" && \ 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
git clone https://github.com/cascadiafoundation/cascadia && cd cascadia git checkout v0.1.1 make install
wget -O $HOME/.cascadiad/config/genesis.json "https://anode.team/Cascadia/test/genesis.json"
peers="[email protected]:36656" sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME/.cascadiad/config/config.toml
SNAP_RPC=185.213.27.91:36657 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\"\"|" $HOME/.cascadiad/config/config.toml
tee /etc/systemd/system/cascadiad.service > /dev/null <<EOF [Unit] Description=cascadiad After=network-online.target [Service] User=$USER ExecStart=$(which cascadiad) start Restart=on-failure RestartSec=3 LimitNOFILE=65535 [Install] WantedBy=multi-user.target EOF
systemctl daemon-reload systemctl enable cascadiad systemctl restart cascadiad
journalctl -fu cascadiad -o cat
👾 Наш валидатор - https://stakeme.io/
🔥 New-Ноды под ключ-https://nodesme.io
💬 Чат- https://t.me/+IhRoXgkqO28yNDVi
✅ Twitter (eng) - https://twitter.com/ProNodes_val
✅ Twitter (ru) - https://twitter.com/pro_nodes
✅ Teletype (eng) - https://teletype.in/@stakeme.io
✅ Teletype (ru) - https://teletype.in/@pronodes
✅ Mirror (eng) -https://mirror.xyz/0x58fC64C4d35049dD0Da5a762E325c6B1D9bC9Fa0
✅ Our telegram - https://t.me/pronodes