StateSync Teritori Mainnet
Copy SNAP_RPC = https://teritori.rpc.m.stavr.tech:443
peers = "ab77fecd8c58d89a1bd28bc198449aa2d7fb8740@teritori.peers.stavr.tech:38026"
sed -i.bak -e "s/^seeds *=.*/seeds = \"$SEEDS\"/; s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.teritorid/config/config.toml
LATEST_HEIGHT = $( curl -s $SNAP_RPC /block | jq -r .result.block.header.height ); \
BLOCK_HEIGHT = $(( LATEST_HEIGHT - 300 )); \
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 /.teritorid/config/config.toml
teritorid tendermint unsafe-reset-all --home $HOME /.teritorid
curl -o - -L https://teritori.wasm.stavr.tech/wasm-teritori.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.teritorid --strip-components 2
wget -O $HOME/.teritorid/config/addrbook.json "https://raw.githubusercontent.com/111STAVR111/props/main/Teritori/addrbook.json"
sudo systemctl restart teritorid && journalctl -fu teritorid -o cat
SnapShot Mainnet - updated every 5 hours
Copy cd $HOME
apt install lz4
sudo systemctl stop teritorid
cp $HOME /.teritorid/data/priv_validator_state.json $HOME /.teritorid/priv_validator_state.json.backup
rm -rf $HOME /.teritorid/data
curl -o - -L https://teritori.snapshot.stavr.tech/teritori-snap.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.teritorid --strip-components 2
mv $HOME /.teritorid/priv_validator_state.json.backup $HOME /.teritorid/data/priv_validator_state.json
wget -O $HOME/.teritorid/config/addrbook.json "https://raw.githubusercontent.com/111STAVR111/props/main/Teritori/addrbook.json"
sudo systemctl restart teritorid && journalctl -fu teritorid -o cat
Copy ab77fecd8c58d89a1bd28bc198449aa2d7fb8740@teritori.peers.stavr.tech:38026
Copy wget -O $HOME/.teritorid/config/addrbook.json "https://raw.githubusercontent.com/111STAVR111/props/main/Teritori/addrbook.json"
Copy curl -o - -L https://teritori.wasm.stavr.tech/wasm-teritori.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.teritorid --strip-components 2
Copy wget -O teritorm https://raw.githubusercontent.com/111STAVR111/props/main/Teritori/teritorm && chmod +x teritorm && ./teritorm