StateSync Composable Mainnet
Copy SNAP_RPC = https://composable.rpc.m.stavr.tech:443
peers = "aa6398f9644e98fa3d04f7dbdd7740c995eb0530@composable.seed.stavr.tech:20306"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$peers\"/" $HOME /.banksy/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 /.banksy/config/config.toml
picad tendermint unsafe-reset-all --home /root/.banksy
wget -O $HOME/.banksy/config/addrbook.json "https://raw.githubusercontent.com/111STAVR111/props/main/Composable/addrbook.json"
curl -o - -L https://composable.wasm.stavr.tech/wasm-composable.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.banksy --strip-components 2
systemctl restart picad && journalctl -fu picad -o cat
SnapShot Mainnet - updated every 5 hours
Copy cd $HOME
apt install lz4
sudo systemctl stop picad
cp $HOME /.banksy/data/priv_validator_state.json $HOME /.banksy/priv_validator_state.json.backup
rm -rf $HOME /.banksy/data
curl -o - -L https://composable.snapshot.stavr.tech/centauri-snap.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.banksy --strip-components 2
curl -o - -L https://composable.wasm.stavr.tech/wasm-composable.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.banksy --strip-components 2
wget -O $HOME/.banksy/config/addrbook.json "https://raw.githubusercontent.com/111STAVR111/props/main/Composable/addrbook.json"
sudo systemctl restart picad && journalctl -fu picad -o cat
StateSync Composable Testnet
Copy SNAP_RPC = https://composable.rpc.t.stavr.tech: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\"| ; \
s|^(seeds[[:space:]]+=[[:space:]]+).*$|\1\"\"|" $HOME /.banksy/config/config.toml
picad tendermint unsafe-reset-all --home /root/.banksy
wget -O $HOME/.banksy/config/addrbook.json "https://raw.githubusercontent.com/111STAVR111/props/main/Composable/Testnet/addrbook.json"
curl -o - -L https://composable.wasmt4.stavr.tech/wasm-composable.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.banksy --strip-components 2
systemctl restart picad && journalctl -fu picad -o cat
SnapShot Composable Testnet
Copy cd $HOME
apt install lz4
sudo systemctl stop picad
cp $HOME /.banksy/data/priv_validator_state.json $HOME /.banksy/priv_validator_state.json.backup
rm -rf $HOME /.banksy/data
curl -o - -L https://composable-t4.snapshot.stavr.tech/composable-snap.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.banksy --strip-components 2
curl -o - -L https://composable.wasmt4.stavr.tech/wasm-composable.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.banksy --strip-components 2
mv $HOME /.banksy/priv_validator_state.json.backup $HOME /.banksy/data/priv_validator_state.json
wget -O $HOME/.banksy/config/addrbook.json "https://raw.githubusercontent.com/111STAVR111/props/main/Composable/Testnet/addrbook.json"
sudo systemctl restart picad && journalctl -fu picad -o cat
Copy aa6398f9644e98fa3d04f7dbdd7740c995eb0530@composable.seed.stavr.tech:20306
Copy wget -O $HOME/.banksy/config/addrbook.json "https://raw.githubusercontent.com/111STAVR111/props/main/Composable/addrbook.json"
Copy wget -O $HOME/.banksy/config/addrbook.json "https://raw.githubusercontent.com/111STAVR111/props/main/Composable/Testnet/addrbook.json"
Copy wget -O ~/.banksy/config/genesis.json "https://raw.githubusercontent.com/111STAVR111/props/main/Composable/genesis.json"
Copy wget -O ~/.banksy/config/genesis.json "https://raw.githubusercontent.com/111STAVR111/props/main/Composable/Testnet/genesis.json"
Copy curl -o - -L https://composable.wasm.stavr.tech/wasm-composable.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.banksy --strip-components 2
Copy curl -o - -L https://composable.wasmt4.stavr.tech/wasm-composable.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.banksy --strip-components 2
Copy wget -O centauridm https://raw.githubusercontent.com/111STAVR111/props/main/Composable/centauridm && chmod +x centauridm && ./centauridm
Copy wget -O compost4 https://raw.githubusercontent.com/111STAVR111/props/main/Composable/Testnet/compost4 && chmod +x compost4 && ./compost4