Upgrade proposal detected

dYmension dYmension

Dymension is a home for easily deployable and lightning fast app-chains, called RollApps. Easily deploy your own consensus-free blockchain and accrue more token value with greater security. Scale just like traditional low latent servers by outsourcing consensus to the dymension hub.

State sync

Basic information

RPC server:

https://dymension-testnet-rpc.brocha.in:443

Peer:

94b63fddfc78230f51aeb7ac34b9fb86bd042a77@dymension-testnet-rpc.p2p.brocha.in:30585

Stop the service and reset the data

sudo systemctl stop dymd
cp $HOME/.dymension/data/priv_validator_state.json $HOME/.dymension/priv_validator_state.json.backup
rm -rf $HOME/.dymension/data/*
mv $HOME/.dymension/priv_validator_state.json.backup $HOME/.dymension/data/priv_validator_state.json

Get and configure the state sync information

STATE_SYNC_RPC=https://dymension-testnet-rpc.brocha.in:443
STATE_SYNC_PEER=94b63fddfc78230f51aeb7ac34b9fb86bd042a77@dymension-testnet-rpc.p2p.brocha.in:30585
LATEST_HEIGHT=$(curl -s $STATE_SYNC_RPC/block | jq -r .result.block.header.height)
SYNC_BLOCK_HEIGHT=$(($LATEST_HEIGHT - 2000))
SYNC_BLOCK_HASH=$(curl -s "$STATE_SYNC_RPC/block?height=$SYNC_BLOCK_HEIGHT" | jq -r .result.block_id.hash)

sed -i.bak -e "s|^enable *=.*|enable = true|" $HOME/.dymension/config/config.toml
sed -i.bak -e "s|^rpc_servers *=.*|rpc_servers = \"$STATE_SYNC_RPC,$STATE_SYNC_RPC\"|" \
  $HOME/.dymension/config/config.toml
sed -i.bak -e "s|^trust_height *=.*|trust_height = $SYNC_BLOCK_HEIGHT|" \
  $HOME/.dymension/config/config.toml
sed -i.bak -e "s|^trust_hash *=.*|trust_hash = \"$SYNC_BLOCK_HASH\"|" \
  $HOME/.dymension/config/config.toml
sed -i.bak -e "s|^persistent_peers *=.*|persistent_peers = \"$STATE_SYNC_PEER\"|" \
  $HOME/.dymension/config/config.toml

Restart the service and check the log

sudo systemctl restart dymd
sudo journalctl -u dymd -f --no-hostname -o cat