LaiChiKok Upgrade
LaiChiKok is the second major upgrade to the LikeCoin chain
Please join the #mainnet-validators channel.
Changelog
Upgrade cosmos-sdk to 0.44.8, ibc-go to 2.1.0
Add support for
like
account prefix (by LikerLand)Add migrations for bech32 stored in state (by LikerLand)
Add
liked debug convert-prefix
command tool for bech32 conversion
Timeline
Event | Time |
---|---|
Testnet Proposal | W3 April 2022 |
Testnet Deploy | W3 April 2022 |
W4 April 2022 | |
Mainnet Deploy | 4 May 2022, around UTC 11:00AM. Block height 3692800 |
Software Versioning Changes
After fotan-1.1
, releases will be tagged with semantic versioning to facilitate the usage of CI/CD pipelines, e.g. v1.2.3
. Pre-release versions will contain suffixes such as -rc1
, -beta2
, -alpha3
.
Below is a list of recent stable releases:
fotan-1.2
: Current mainnet versionv1.2.0
: First version to support cosmovisor, binary compatible withfotan-1.2
v2.0.0
: LaiChiKok upgrade
System Requirements During Upgrade
The system resources required during the upgrade will be higher than normal operation for data migration tasks.
In particular, large amount of memory will be used, and data files will be duplicated for backup.
After the upgrade is applied, the day-to-day resources requirement is same as previously suggested in our Node Setup Guide.
Below recommendation is based on recent test runs of migration with mainnet data. Any machine with less than 16GB will likely result in OOM (out of memory) error. Also note that using swap will lengthen the upgrade duration considerably.
Recommended
8 CPU Cores
64GB RAM + 32GB Swap
500GB+ SSD
Minimum
4 CPU Cores
16GB RAM + 48GB Swap
500GB+ SSD
Refer to this third party guide for steps to add swap space.
Using RAM lower than 16GB will likely result a OOM and corruption of data.
Operators who could not arrange a capable machine might opt to temporarily stop validating until the network has upgraded, then catch up to trusted nodes using state sync.
Workflow
v2.0.0
is tagged on repo and binary builds are released on github via CIUpgrade proposal is raised on-chain, which specifies the following parameters:
Upgrade Name:
v2.0.0
Upgrade Height: (TBC)
Upgrade Info:
After the proposal is approved, operators should place the
v2.0.0
binary at the Cosmovisor upgrades folder BEFORE the upgrade time. Alternatively, operators can configure cosmovisor to download binaries automatically.Cosmovisor will automatically switch binaries at the scheduled block height. Operators will not be required to run migrations or restart chain manually. However, operators are recommended to be present during the upgrade time in case of any unforeseen issues.
Instructions for Validator Operators
Migrate to Cosmovisor
To support the automatic upgrade, operators should migrate to host their node with Cosmovisor beforehand, which is supported since v1.2.0
. A setup guide with migration instructions is available here. v1.2.0
is binary compatible with fotan-1.1
, so operators can upgrade at their own pace.
Operators can also test their setup and practice the migration flow on testnet before the actual upgrade.
Upgrading without Cosmovisor
Although not recommended, it is possible for operators to opt out of using Cosmovisor.
At the upgrade height, the old chain binary will halt with upgrade needed
panic. Afterwards, operators shall backup their .liked
folder, then start their node using the new version binary.
Prepare the next binary ahead of upgrade height
Once the proposal is approved on-chain, operators should either download or build the next binary version, and place it within the Cosmovisor upgrades folder.
The path to the new binary should be:
Alternatively, operators can enable the auto-download feature of Cosmovisor by setting environment variable DAEMON_ALLOW_DOWNLOAD_BINARIES
to true
, which is the default if our setup script or docker image was used. To be safe, we recommend you do prepare the binary manually.
Review node configuration
Due to Cosmos SDK changes, there is a requirement of configuring minimum gas price. In the past, the configuration is empty string (zero gas price) by default. After the upgrade, the node will refuse to start up if a gas price is not explicitly set. We recommend setting a non-zero value, which can mitigate spam transactions on the network.
We also urge all validators to take this chance to review their app.toml
config, especially the state-sync snapshots feature. By contributing state-sync snapshots, the synchronization process of new nodes can be speeded up from days to minutes. This will be vital to the growth of our network, as the full chain data size is growing rapidly due to more features and applications being added to LikeCoin chain.
Below are items to be updated in app.toml
:
Backups
Cosmovisor will backup the .liked/data
folder to .liked/data-backup-<date>
after the chain has halted at upgrade height and before the new binary has started.
Contingency Steps to Skip or Rollback Upgrades
Below are steps to skip the upgrade forcefully. This workflow can be used under the following circumstances:
A critical bug is found shortly before upgrade height, thus there is no time to cancel the upgrade on-chain via
CancelSoftwareUpgrade
proposalThe upgrade failed on mainnet and the community reached consensus to rollback the chain to the state before the upgrade height
To skip an upgrade on short notice, operators shall append --unsafe-skip-upgrades <upgrade height>
to their cosmovisor launch argument.
Set launch argument for systemd method
Stop the node by
sudo systemctl stop liked
Edit
/etc/systemd/system/liked.service
Locate line beginning with
ExecStart=
, append--unsafe-skip-upgrades <upgrade height>
to the endSave the file
(For rollback, restore
.liked
folder with additional steps in the next section)Run
sudo systemctl daemon-reload
, thensudo systemctl restart liked
Set launch argument for docker method
Stop the node by
docker-compose down
Edit
docker-compose.yml
Locate
liked-service-cosmovisor
service, edit itscommand
field to add"--unsafe-skip-upgrades", "<upgrade height>",
entries in the array.Save the file
(For rollback, restore
.liked
folder with additional steps in the next section)Run
docker-compose up -d
Restore .liked
folder to rollback upgrade
This is in addition to adding the skip upgrade flag step above.
Point the current
binary symlink to the previous version (genesis
for this upgrade):
If the community decided to rollback after blocks were produced post-upgrade, we will need to restore the data folder from backup:
Instructions for Upgrade Proposer
CI/CD Release
Once a release candidate is validated on devnet / testnet, please tag the commit with version v2.0.0
. CI will test and build with the tagged commit, then release it on GitHub.
Please also push commits to release/v2.x
and update branch names in node setup guides.
Submit Proposal
The proposer should submit a proposal with below command:
The proposal content, especially upgrade-info
should be validated on testnet beforehand.
Please also refer to the technical documentation on upgrade proposal usage here.
Last updated