Copy SNAP_RPC = https://side.rpc.t.stavr.tech:443
peers = "fe54f3964664592b3be89eb685cc72e9aecb14e9@side-t.seed.stavr.tech:21306"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME /.side/config/config.toml
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 /.side/config/config.toml
sided tendermint unsafe-reset-all --home /root/.side
wget -O $HOME /.side/config/addrbook.json "https://raw.githubusercontent.com/111STAVR111/props/main/Side/addrbook.json"
curl -o - -L https://side-t.wasm.stavr.tech/wasm-side.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.side --strip-components 2
systemctl restart sided && journalctl -u sided -f -o cat
SnapShot Testnet - updated every 5 hours
Copy cd $HOME
apt install lz4
sudo systemctl stop sided
cp $HOME /.side/data/priv_validator_state.json $HOME /.side/priv_validator_state.json.backup
rm -rf $HOME /.side/data
curl -o - -L https://side-t.snapshot.stavr.tech/side-snap.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.side --strip-components 2
curl -o - -L https://side-t.wasm.stavr.tech/wasm-side.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.side --strip-components 2
mv $HOME /.side/priv_validator_state.json.backup $HOME /.side/data/priv_validator_state.json
wget -O $HOME /.side/config/addrbook.json "https://raw.githubusercontent.com/111STAVR111/props/main/Side/addrbook.json"
sudo systemctl restart sided && journalctl -u sided -f -o cat
Copy fe54f3964664592b3be89eb685cc72e9aecb14e9@side.seed.stavr.tech:21306
Copy wget - O $HOME / . side / config / addrbook . json "https://raw.githubusercontent.com/111STAVR111/props/main/Side/addrbook.json"
Copy wget -O $HOME /.side/config/genesis.json "https://raw.githubusercontent.com/111STAVR111/props/main/Side/genesis.json"
Copy curl -o - -L https://side-t.wasm.stavr.tech/wasm-side.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.side --strip-components 2
Copy wget -O sidem https://raw.githubusercontent.com/111STAVR111/props/main/Side/sidem && chmod +x sidem && ./sidem