v2024.04 Upgrade Notes
CoreMainnet full node and lite server owners
Please update your mytonctrl and validator node.
Target versions:
mytonctrl
9182448
validator
4cfe1d1
1. Check your OS version
Compatible versions:
- Ubuntu 20.04, 22.04
- Debian 11
Install liblz4-dev package:
apt-get install liblz4-dev
2. Make sure what your mytonctrl from an official repository
$ cd /usr/src/mytonctrl && git remote -v
origin https://github.com/ton-blockchain/mytonctrl.git (fetch)
origin https://github.com/ton-blockchain/mytonctrl.git (push)
In case of errors add git safe directories:
git config --global --add safe.directory /usr/src/mytonctrl
git config --global --add safe.directory /usr/src/ton
3. Check branches
In mytonctrl run `status`, under "Local validator status" find current versions:
Version mytonctrl: xxxxxx (master)
Version validator: yyyyyy (master)
Both must be on "master" branch
4. Update node
Run commands via mytonctrl*:
- `update`
- `upgrade`
* if you don't use mytonctrl please manually rebuild code from master branch of https://github.com/ton-blockchain/ton
5. Re-check versions as in #3 and compare with target vesrions
Set archive-ttl parameter: parameter of how long node how long does a node hold history before garbage collection.
Since validator node usually do not need long history, and to decrease disk usage we recommend to set archive-ttl to 1 day, in MyTonCtrl type command:
set_archive_ttl 86400
For LiteServers, operator of the node need to set archive-ttl in accordance with LS needs. Note: that after setting archive_ttl old data will be deleted, however this will not happen immediately since garbage collection is distributed over time.
NB: do not update all nodes at the same time; best practice is to make updates in small batches or one by one