Upgrading Clients
If IBC clients need to be upgraded after their reference chains went through an upgrade, the following CLIs may be used.
Upgrade Client Command
Use the upgrade client
command to upgrade a specific IBC client after a chain upgrade.
DESCRIPTION:
Upgrade an IBC client
USAGE:
hermes upgrade client --host-chain <HOST_CHAIN_ID> --client <CLIENT_ID> --upgrade-height <REFERENCE_UPGRADE_HEIGHT>
OPTIONS:
-h, --help Print help information
REQUIRED:
--client <CLIENT_ID>
Identifier of the client to be upgraded
--host-chain <HOST_CHAIN_ID>
Identifier of the chain that hosts the client
--upgrade-height <REFERENCE_UPGRADE_HEIGHT>
The height at which the reference chain halts for the client upgrade
Upgrade Clients Command
Use the upgrade clients
command to upgrade all IBC clients that target a specific (upgraded) chain.
DESCRIPTION:
Upgrade all IBC clients that target a specific chain
USAGE:
hermes upgrade clients [OPTIONS] --reference-chain <REFERENCE_CHAIN_ID> --upgrade-height <REFERENCE_UPGRADE_HEIGHT>
OPTIONS:
-h, --help Print help information
--host-chain <HOST_CHAIN_ID> Identifier of the chain hosting the clients to be upgraded
REQUIRED:
--reference-chain <REFERENCE_CHAIN_ID>
Identifier of the chain that underwent an upgrade; all clients targeting this chain will
be upgraded
--upgrade-height <REFERENCE_UPGRADE_HEIGHT>
The height at which the reference chain halts for the client upgrade
Example
Here is an example of a chain upgrade proposal submission and client upgrade.