Skip to content

agoric-upgrade-21

Latest
Compare
Choose a tag to compare
@mujahidkay mujahidkay released this 07 Jul 16:50
· 358 commits to master since this release

The Agoric OpCo engineering team is pleased to publish the agoric-upgrade-21 release. This release is primarily intended for migrating cosmos-sdk to v0.47.17 and enabling IST to BLD transitioning for inter protocol sunset, and some client-utils, orchestration and fast USDC improvements.

The full set of changes in this release can be found at #11511 and reviewed in detail at agoric-upgrade-20...agoric-upgrade-21.

Important

Note that Agoric SDK no longer supports Node 18. Please make sure you're on one of the supported versions as outlined in the README.
The release now also requires the use of corepack (part of Node.js). Please run corepack enable before building.

This release has satisfied all pre-release/testnet validation checks, and is now recommended for chains to upgrade from the previous agoric-upgrade-20 release. As a chain-halting upgrade, once approved, all chain validators will need to upgrade from agoric-upgrade-20 to this new version (after the chain halts due to reaching the height required in a governance proposal).

State-sync

State-sync snapshots now only include minimal data to restore a node. However there are still continued performance issues related to state-sync. In particular, we've observed that on some deployments, the snapshot taking and restoring process can take multiple hours, require about 20GB of temporary free disk space, and 16GB of memory.

Cosmos Upgrade Handler Name

Below is the cosmos upgrade handler name for this release. This is the name that can be used in governance proposals to deploy this upgrade.

Cosmos Upgrade Handler Name: agoric-upgrade-21

Tags

Below is the git information related to this software release. Note the git tag does not always match the cosmos upgrade handler name.

Git Tag: agoric-upgrade-21
Git Commit: e4dd46857133403d584bcf822a81817b355532f9
@agoric/cosmos package version: v0.35.0-u21.0
Docker: ghcr.io/agoric/agoric-sdk:63

As shown in go.mod this release is based on:

ibc-go v7.10.0
cosmos-sdk v0.47.17
cometbft v0.37.15

How to upgrade

Presuming that your node is running agoric-upgrade-20, once the upgrade height for a subsequent proposal to upgrade to agoric-upgrade-21 has been reached, your node will halt automatically allowing you to upgrade the agoric stack.

Prerequisites

Install supported versions of Go, Node.js, and a compiler such as gcc or clang as documented in the README.

After installing Node.js, run corepack enable.

Important

Agoric SDK no longer supports Node 18, as mentioned in the README above.

Make sure that the environment running the agd service has the same Node.js version as the environment used for building. In particular, if using nvm to manage Node.js version, the service environment should enable nvm and use the same version.

Building

# (stop the agd service)
cd agoric-sdk
git fetch --all
git checkout agoric-upgrade-21
git clean -xdf && git submodule foreach --recursive git clean -xdf
./bin/agd build
# (start the agd service)

Do not copy the agd script or Go binary to another location. If you would like to have an executable agd in another location, then create a symlink in that location pointing to agoric-sdk/bin/agd.

Troubleshooting module ... was compiled against a different Node.js version and SyntaxError issues

The agd service is not using the same version of Node.js as the one used when building. The most likely cause is that nvm was used to manage the Node.js version in the shell when building. Either install the required version of Node.js globally using the system's package manager, or enable nvm in the environment of the agd service.

Troubleshooting repoconfig.sh: No such file or directory

Unlike typical cosmos-sdk chains where the daemon is a single executable file, Agoric's use of cosmos-sdk depends on many components of agoric-sdk at runtime. Copying agd to /usr/local/bin or the like is unlikely to produce a working installation. For more detail, see: #7825

Troubleshooting Cannot find dependency ... in systemd

If you have LimitNOFILE=4096 in your systemd unit file, change it to LimitNOFILE=65536. For more detail, see #7817

Specifying --upgrade-info for the software upgrade proposal

The ./scripts/gen-upgrade-proposal.sh is designed to aid in composing a agd tx submit-proposal software-upgrade ... command. In particular, it captures package checksums to verify integrity of downloaded software.