> For the complete documentation index, see [llms.txt](https://utsa.gitbook.io/services/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://utsa.gitbook.io/services/mainnet/dymension/updates.md).

# Updates

##

{% hint style="success" %}

### After update you can check prevotes/precommits status

{% endhint %}

```shell
FOLDER=.dymension

# find out RPC port
echo -e "\033[0;32m$(grep -A 3 "\[rpc\]" ~/$FOLDER/config/config.toml | egrep -o ":[0-9]+")\033[0m"

PORT=<enter_your_port>

curl -s localhost:$PORT/consensus_state | jq '.result.round_state.height_vote_set[0].prevotes_bit_array' && \
curl -s localhost:$PORT/consensus_state | jq '.result.round_state.height_vote_set[0].precommits_bit_array'
```

{% hint style="warning" %}
Updates are available for information. Boot via State sync or Snapshot to avoid installing all updates. In this case, you must use the actual version of the binary file and genesis
{% endhint %}

## UPD 🕊 on v3.1.0 (Update Height: 1159000)

```shell
cd $HOME/dymension
git pull
git checkout v3.1.0
make build
$HOME/dymension/build/dymd version --long | grep -e version -e commit
# version: b0e997d6b921666b7c4da4e121a87a2652ed0d2a
# commit: v3.1.0

# AFTER THE NETWORK IS STOPPED ON THE REQUIRED BLOCK!!!
systemctl stop dymd
mv $HOME/dymension/build/dymd $(which dymd)
dymd version --long | grep -e version -e commit
# 

systemctl restart dymd && journalctl -u dymd -f -o cat
```

## UPD 🕊 on v3.2.0 (Update Height: 5135550)

```shell
cd $HOME/dymension
git pull
git checkout v3.2.0
make build
$HOME/dymension/build/dymd version --long | grep -e version -e commit
# version: b77a9e11a4e890135274effd48e318c17e231e25
# commit: v3.2.0

# AFTER THE NETWORK IS STOPPED ON THE REQUIRED BLOCK!!!
systemctl stop dymd
mv $HOME/dymension/build/dymd $(which dymd)
dymd version --long | grep -e version -e commit
# 

systemctl restart dymd && journalctl -u dymd -f -o cat
```

## UPD 🕊 on v4.0.0 (Update Height: 10192266)

```shell
cd $HOME/dymension
git pull
git checkout v4.0.0
make build
$HOME/dymension/build/dymd version --long | grep -e version -e commit
# version: 5bbee2a0c74474bc159bd28bd2f70782e2352dcd
# commit: v4.0.0

# AFTER THE NETWORK IS STOPPED ON THE REQUIRED BLOCK!!!
systemctl stop dymd
mv $HOME/dymension/build/dymd $(which dymd)
dymd version --long | grep -e version -e commit
# 

# edit systemd
nano /etc/systemd/system/dymd.service
#WorkingDirectory=/root/.dymension

# edit timeout
timeout_propose="1.8s"
timeout_commit="500ms"

sed -i "s/^timeout_propose *=.*/timeout_propose = \"$timeout_propose\"/" $HOME/.dymension/config/config.toml
sed -i "s/^timeout_commit *=.*/timeout_commit = \"$timeout_commit\"/" $HOME/.dymension/config/config.toml

systemctl restart dymd && journalctl -u dymd -f -o cat
```
