github thetatoken/theta-protocol-ledger v4.0.0
Release v4.0.0

2 years ago

Theta Labs, Inc. is pleased to announce the release of Theta v4.0.0. This upgrade increases the allowed maximum code size for smart contracts, so that after the hardfork the main chain will be able to support more complex smart contracts. A subchain ID mapping mechanism will be implemented to support potentially thousands of Subchains. The upgrade also includes various other fixes and a code refactor for the Metachain. This v4.0.0 release will put the required network upgrades in place for the Theta Metachain Launch on December 1st.

This release will perform a hardfork to enable the new features at block height 17790756, approximately 7pm Nov 3rd, 2022 Pacific Time. It is mandatory to upgrade your node otherwise it will fall out of sync after the hardfork.

Version code: Version 4.0.0 7da8140d070e1d7b336eb975b3e5edce17ab508b

Upgrade Instructions

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:

  1. 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
  1. 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

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

For Guardian GUI nodes

If you are running the GUI version, it will update itself later this week. No action is needed from your end.

Don't miss a new theta-protocol-ledger release

NewReleases is sending notifications on new releases.