Stop decentrd and reset database
Copy sudo systemctl stop decentrd
cp $HOME /.decentr/data/priv_validator_state.json $HOME /.decentr/priv_validator_state.json.backup
decentrd tendermint unsafe-reset-all --home $HOME /.decentr --keep-addr-book
Copy STATE_SYNC_RPC = https://rpc.cosmos.directory:443/decentr
BACKUP_RPC = https://decentr-rpc.lavenderfive.com:443
LATEST_HEIGHT = $( curl -s $STATE_SYNC_RPC /block | jq -r .result.block.header.height )
BLOCK_HEIGHT = $( echo LATEST_HEIGHT | awk '{print $1 - ($1 % 6000)}' ); \
TRUST_HASH = $( curl -s "$STATE_SYNC_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash )
SEEDS="8a3485f940c3b2b9f0dd979a16ea28de154f14dd@calliope.mainnet.decentr.xyz:26656,3261bff0b7c16dcf6b5b8e62dd54faafbfd75415@hera.mainnet.decentr.xyz:26656,c37f32e202e13b0725515570f794b68573a6f58c@hera.mainnet.decentr.xyz:26656,5f3cfa2e3d5ed2c2ef699c8593a3d93c902406a9@hermes.mainnet.decentr.xyz:26656,a529801b5390f56d5c280eaff4ae95b7163e385f@melpomene.mainnet.decentr.xyz:26656,385129dbe71bceff982204afa11ed7fa0ee39430@poseidon.mainnet.decentr.xyz:26656,35a934228c32ad8329ac917613a25474cc79bc08@terpsichore.mainnet.decentr.xyz:26656,0fd62bcd1de6f2e3cfc15852cdde9f3f8a7987e4@thalia.mainnet.decentr.xyz:26656,bd99693d0dbc855b0367f781fb48bf1ca6a6a58b@zeus.mainnet.decentr.xyz:26656,6bb349e1709da784d1628fa1f8bfc5cd00af974d@seeds.badgerbite.io:16656,3fb96f1619340507e7f28fd7c4b81f4cd3d9a7e7@seeds-decentr.sxlzptprjkt.xyz:31656,89f32d5e096eadddb1b3e6e839963503ef4d2d70@rpc.decentr.nodexcapital.com:10856,49963582499c44dc8e119b4112e2f7b227003333@seed-node.mms.team:39656,8542cd7e6bf9d260fef543bc49e59be5a3fa9074@seed.publicnode.com:26656,ca6c4b66c41cfca3e1b873321527781d46c92e57@seed-decentr.ibs.team:16657"
echo -e "Modifying $HOME/.decentr/config/config.toml based on the following values:"
echo -e "RPC Address: $STATE_SYNC_RPC"
echo -e "Latest Block Height: $LATEST_HEIGHT"
echo -e "Sync Block Height: $BLOCK_HEIGHT"
echo -e "Trust Hash: $TRUST_HASH"
sed -i \
-e "s|^enable *=.*|enable = true|" \
-e "s|^rpc_servers *=.*|rpc_servers = \"$STATE_SYNC_RPC,$BACKUP_RPC\"|" \
-e "s|^trust_height *=.*|trust_height = $BLOCK_HEIGHT|" \
-e "s|^trust_hash *=.*|trust_hash = \"$TRUST_HASH\"|" \
-e "s|^seeds *=.*|seeds = \"$SEEDS\"|" \
$HOME /.decentr/config/config.toml
mv $HOME /.decentr/priv_validator_state.json.backup $HOME /.decentr/data/priv_validator_state.json
Copy curl -L https://snapshots.lavenderfive.com/wasm/ $HOME /.decentr/wasmonly.tar.zst | tar -xaf - -C $HOME /.decentr
Restart decentrd and check the log
Copy sudo systemctl restart decentrd && sudo journalctl -u decentrd -f --no-hostname -o cat