-
Notifications
You must be signed in to change notification settings - Fork 690
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: use MsgRecoverClient in docs #4580
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -51,7 +51,6 @@ See also the relevant documentation: [ADR-026, IBC client recovery mechanisms](. | |
|
||
## Preconditions | ||
|
||
- The chain is updated with ibc-go >= v1.1.0. | ||
- There exists an active client (with a known client identifier) for the same counterparty chain as the expired client. | ||
- The governance deposit. | ||
|
||
|
@@ -76,11 +75,10 @@ The client is attached to the expected Akash `chain-id`. Note that although the | |
|
||
### Step 2 | ||
|
||
If the chain has been updated to ibc-go >= v1.1.0, anyone can submit the governance proposal to recover the client by executing this via CLI. | ||
Anyone can submit the governance proposal to recover the client by executing the following via CLI. | ||
If the chain is on an ibc-go version older than v8, please see the [relevant documentation](https://ibc.cosmos.network/v6.1.0/ibc/proposals.html). | ||
|
||
> Note that the Cosmos SDK has updated how governance proposals are submitted in SDK v0.46, now requiring to pass a .json proposal file | ||
|
||
- From SDK v0.46.x onwards | ||
- From ibc-go v8 onwards | ||
|
||
```shell | ||
<binary> tx gov submit-proposal [path-to-proposal-json] | ||
|
@@ -92,30 +90,20 @@ If the chain has been updated to ibc-go >= v1.1.0, anyone can submit the governa | |
{ | ||
"messages": [ | ||
{ | ||
"@type": "/ibc.core.client.v1.ClientUpdateProposal", | ||
"title": "title_string", | ||
"description": "description_string", | ||
"@type": "/ibc.core.client.v1.MsgRecoverClient", | ||
"subject_client_id": "expired_client_id_string", | ||
"substitute_client_id": "active_client_id_string" | ||
"substitute_client_id": "active_client_id_string", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I haven't verified manually. If someone thinks that is important, I'll let you take the lead 🙂 I did use the gov cli cmd to format this:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. wouldn't this just be this suggestion comes after looking at sdk's docs for x/upgrade which uses gov v1. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There's 2 cli's that support submission of recovering a client. Using gov's submit-proposal cli and the one we implemented. I actually ended up testing recovery via the gov cli using the e2e targetting cli's. Personally I prefer the json file approach, otherwise you input all the args as flags |
||
"signer": "<gov-address>" | ||
} | ||
], | ||
"metadata": "<metadata>", | ||
"deposit": "10stake" | ||
"title": "My proposal", | ||
"summary": "A short summary of my proposal", | ||
"expedited": false | ||
} | ||
``` | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should we also add an example using the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Personally, I find the submit-proposal to be easier UI then submitting all these extra fields with flags. I'll leave it up to y'all to push the extra example if you'd like |
||
Alternatively there's a legacy command (that is no longer recommended though): | ||
|
||
```shell | ||
<binary> tx gov submit-legacy-proposal update-client <expired-client-id> <active-client-id> | ||
``` | ||
|
||
- Until SDK v0.45.x | ||
|
||
```shell | ||
<binary> tx gov submit-proposal update-client <expired-client-id> <active-client-id> | ||
``` | ||
|
||
The `<expired-client-id>` identifier is the proposed client to be updated. This client must be either frozen or expired. | ||
|
||
The `<active-client-id>` represents a substitute client. It carries all the state for the client which may be updated. It must have identical client and chain parameters to the client which may be updated (except for latest height, frozen height, and chain ID). It should be continually updated during the voting period. | ||
|
@@ -124,6 +112,4 @@ After this, all that remains is deciding who funds the governance deposit and en | |
|
||
## Important considerations | ||
|
||
Please note that from v1.0.0 of ibc-go it will not be allowed for transactions to go to expired clients anymore, so please update to at least this version to prevent similar issues in the future. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. removed as no chains are on a pre ibc-go v1 version |
||
|
||
Please also note that if the client on the other end of the transaction is also expired, that client will also need to update. This process updates only one client. | ||
Please note that if the client on the other end of the transaction is also expired, that client will also need to update. This process updates only one client. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for some reason linking v7.3.0 wasn't working for me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmmm, that's not good... Looks like the docs for the latest releases are not properly deployed...