Upgrade Details
- Upgrade name: Mainnet12
- Binary version:
v0.36.0
- Upgrade countdown/block height
- Binary Links
Common Steps for All Upgrade Options
In the sections that follow both Cosmovisor
and non-Cosmovisor
upgrade paths are provided. Prior to detailing specifics steps for these upgrade paths, in this section we cover steps required regardless of upgrade path chosen.
NOTE - The following steps are not required if the auto-download option is enabled for Cosmovisor.
Either download the Akash binary or build it from source. We highly recommend using a pre-complied binary but provide instructions to build from source here in the rare event it would be necessary.
Option 1: Upgrade Using Cosmovisor
The following instructions assume the akash
and cosmovisor
binaries are already installed and cosmovisor is set up as a systemd service.
The section that follows will detail the install/configuration of Cosmovisor. If additional details are necessary, visit Start a node with Cosmovisorfor instructions on how to install and set up the binaries.
NOTE - Cosmovisor
1.5.0
is required
Configure Cosmovisor
Note: The following steps are not required if Cosmovisor v1.0 is already installed and configured to your preferred settings.
To install cosmovisor
by running the following command:
Check to ensure the installation was successful:
Update cosmovisor
systemd service file and make sure the environment variables are set to the appropriate values(the following example includes the recommended settings).
- NOTE - It is preferable if you start your service under a dedicated non-system user other than root.
- NOTE -
DAEMON_SHUTDOWN_GRACE
(optional, default none), if set, send interrupt to binary and wait the specified time to allow for cleanup/cache flush to disk before sending the kill signal. The value must be a duration (e.g. 1s).
Cosmovisor can be configured to automatically download upgrade binaries. It is recommended that validators do not use the auto-download option and that the upgrade binary is compiled and placed manually.
If you would like to enable the auto-download option, update the following environment variable in the systemd configuration file:
Cosmovisor will automatically create a backup of the data directory at the time of the upgrade and before the migration.
If you would like to disable the auto-backup, update the following environment variable in the systemd configuration file:
Move the file to the systemd directory:
Restart cosmovisor
to ensure the environment variables have been updated:
Check the status of the cosmovisor
service:
Enable cosmovisor
to start automatically when the machine reboots:
Prepare Upgrade Binary
Skip this section if you have enabled DAEMON_ALLOW_DOWNLOAD_BINARIES cosmovisor parameter. It will automatically create the correct path and download the binary based on the plan info from the govt proposal.
Create the folder for the upgrade (v0.36.0) - cloned in this step - and copy the akash binary into the folder.
This next step assumes that the akash binary was built from source and stored in the current (i.e., akash) directory:
At the proposed block height, cosmovisor
will automatically stop the current binary (v0.34.X), set the upgrade binary as the new current binary (v0.36.0), and then restart the node.\
Option 2: Upgrade Without Cosmovisor
Using Cosmovisor to perform the upgrade is not mandatory.
Node operators also have the option to manually update the akash
binary at the time of the upgrade. Doing it before the upgrade height will stop the node.
When the chain halts at the proposed upgrade height, stop the current process running akash
.
Either download the Akash binary or build from source - completed in this step - and ensure the akash
binary has been updated:
Update configuration with
Restart the process running akash
.
Appendix
Build Binary From Sources
Prerequisites
NOTE - we highly recommend downloading a complied Akash binary over building the binary from source
Direnv is required to compile sources. Check here for details on how to install and hook to your shell
if using direnv first time (or cloning sources on to a new host) you should see following message after entering source dir:
if no such message, most like direnv is not hooked to the shell
Build
After build artefacts are located in dist
directory