Theta Labs, Inc. is pleased to announce the release of Theta v4.1.1. This upgrade contains changes for block synchronization improvements. It is NOT a hardfork, but we recommend you to upgrade your node following the instructions below at your earliest convenience:
Version code: Version 4.1.1 b09438853fd33f2130714c16a9208d00b40376e9
1. Upgrade Instructions
1.1 Option A: Compile from source code
Same as the previous versions, the compilation requires Ubuntu 18.04.4 LTS or higher version with Go 1.14+. However, the compiled binary should run on a lower version Ubuntu. If you want to compile the source code on a lower version Ubuntu, you can use Docker. Or you can compile the code on a Ubuntu 18.04.4 machine and copy the compiled binary over. To upgrade, please follow the steps below:
- Pull the latest code from the
release
branch and compile the binary.
cd $THETA_HOME
git checkout release
git pull origin release
export GO111MODULE=on
make install
- If the compilation is successful, you can restart the Theta node as usual. After the Theta node is running, please execute the following command command to double confirm that the version code and hash printed match with the version code above.
thetacli query version
1.2 Option B: Use precompiled binary
If you prefer to use the precompiled theta
binary, please download the latest binary with the following command. Please replace <THETA_BIN_PATH>
with the parent folder of the theta binary you are running with:
curl -k --output <THETA_BIN_PATH>/theta `curl -k 'https://mainnet-data.thetatoken.org/binary?os=linux&name=theta'`
curl -k --output <THETA_BIN_PATH>/thetacli `curl -k 'https://mainnet-data.thetatoken.org/binary?os=linux&name=thetacli'`
With these binaries, you can restart the Theta node as usual. After the Theta node is running, please execute the following command command to double confirm that the version code and hash printed match with the version code above.
<THETA_BIN_PATH>/thetacli query version
1.3 For Guardian GUI nodes
If you are running the GUI version, it will update itself in the next few days/weeks. No action is needed from your end.
2. What's Changed
- Network: fix memory leak and add protection against aggresive peers by @weiribao in #193
- Misc fix by @weiribao in #196
- Limit the number of pending heavy getBlocksByRange queries by @jieyilong in #201
- add idleTimeout by @onching in #203
- Drop invalid messages early by @weiribao in #125
- Drop invalid messages early (updated with the latest code) by @jieyilong in #206
- Omit blocks on obsolete branches in inventory response by @weiribao in #210
- More fixes for block synchronization by @jieyilong in #212
- Block synchronization improvements by @jieyilong in #211
- Support setting password through ENV var by @jieyilong in #217
- add a delay to recovery mode loop by @weiribao in #219
- Port upstream patch by @weiribao in #221
Full Changelog: v4.0.0...v4.1.0