Chain ID: ssc-1 | Node Version: v0.1.3
sudo apt update
sudo apt-get install git curl build-essential make jq gcc snapd chrony lz4 tmux unzip bc -y
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
cd $HOME
rm -rf evmos
git clone https://github.com/evmos/evmos.git
cd evmos
git checkout v9.1.0
make install
evmosd version
Replace NodeName with your own moniker.
evmosd init NodeName --chain-id=altruistic-1
curl -Ls https://ss.temp.nodestake.org/genesis.json > $HOME/.evmosd/config/genesis.json
curl -Ls https://ss.temp.nodestake.org/addrbook.json > $HOME/.evmosd/config/addrbook.json
sudo tee /etc/systemd/system/evmosd.service > /dev/null <<EOF
[Unit]
Description=evmosd Daemon
After=network-online.target
[Service]
User=$USER
ExecStart=$(which evmosd) start
Restart=always
RestartSec=3
LimitNOFILE=65535
[Install]
WantedBy=multi-user.target
EOF
sudo systemctl daemon-reload
sudo systemctl enable evmosd
SNAP_NAME=$(curl -s https://ss.temp.nodestake.org/ | egrep -o ">20.*\.tar.lz4" | tr -d ">")
curl -o - -L https://ss.temp.nodestake.org/${SNAP_NAME} | lz4 -c -d - | tar -x -C $HOME/.evmosd
sudo systemctl restart evmosd
journalctl -u evmosd -f
If you have any questions, please reach out to our Discord
https://rpc.saga.nodestake.org
https://api.saga.nodestake.org
https://grpc.saga.nodestake.org:443
https://ss.saga.nodestake.org/genesis.json
curl -Ls https://ss.saga.nodestake.org/genesis.json > $HOME/.ssc/config/genesis.json
c69bb228dbbe3ac22ce504c87ce1870f99a7bd21@rpc.saga.nodestake.org:666
seed="c69bb228dbbe3ac22ce504c87ce1870f99a7bd21@rpc.saga.nodestake.org:666"
sed -i.bak -e "s/^seed *=.*/seed = \"$seed\"/" ~/.ssc/config/config.toml
sudo systemctl restart sscd
journalctl -u sscd -f
https://ss.saga.nodestake.org/addrbook.json
curl -Ls https://ss.saga.nodestake.org/addrbook.json > $HOME/.ssc/config/addrbook.json
sudo systemctl restart sscd
journalctl -u sscd -f
peers=$(curl -s https://ss.saga.nodestake.org/peers.txt)
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" ~/.ssc/config/config.toml
sudo systemctl restart sscd
journalctl -u sscd -f
sudo systemctl stop sscd
sscd tendermint unsafe-reset-all --home ~/.ssc/ --keep-addr-book
SNAP_RPC="https://rpc.saga.nodestake.org: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\"|" ~/.ssc/config/config.toml
more ~/.ssc/config/config.toml | grep 'rpc_servers'
more ~/.ssc/config/config.toml | grep 'trust_height'
more ~/.ssc/config/config.toml | grep 'trust_hash'
sudo systemctl restart sscd
journalctl -u sscd -f
We make the node snapshot every 12h
sudo apt update
sudo apt-get install snapd lz4 -y
sudo systemctl stop sscd
cp $HOME/.ssc/data/priv_validator_state.json $HOME/.ssc/priv_validator_state.json.backup
rm -rf $HOME/.ssc/data
sscd tendermint unsafe-reset-all --home ~/.ssc/ --keep-addr-book
SNAP_NAME=$(curl -s https://ss.saga.nodestake.org/ | egrep -o ">20.*\.tar.lz4" | tr -d ">")
curl -o - -L https://ss.saga.nodestake.org/${SNAP_NAME} | lz4 -c -d - | tar -x -C $HOME/.evmosd
mv $HOME/.ssc/priv_validator_state.json.backup $HOME/.ssc/data/priv_validator_state.json
sudo systemctl restart sscd
journalctl -u sscd -f
Get old Snapshots
If you have any questions, please reach out to our Discord