-
Notifications
You must be signed in to change notification settings - Fork 586
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
feat(release/v8.3.x): use unordered ordering by default for new ica channels #6251
feat(release/v8.3.x): use unordered ordering by default for new ica channels #6251
Conversation
Important Auto Review SkippedAuto reviews are disabled on base/target branches other than the default branch. Please add the base/target branch pattern to the list of additional branches to be reviewed in the settings. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
// Prior to v6.x.x of ibc-go, the controller module was only functional as middleware, with authentication performed | ||
// by the underlying application. For a full summary of the changes in v6.x.x, please see ADR009. | ||
// This API will be removed in later releases. | ||
func (k Keeper) RegisterInterchainAccountWithOrdering(ctx sdk.Context, connectionID, owner, version string, ordering channeltypes.Order) error { |
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.
I added this function to allow setting the ordering, otherwise if the controller chain has a a custom auth module and tries to open a channel with a host chain that doesn't support unordered channels, any attempt to open new ICA channels will fail. Using this function, the controller chain has the option to use ordered ordering with chains that don't support unordered ordering.
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.
I will open an issue to break the API of RegisterInterchainAccount
to add the extra order parameter and also use UNORDERED
ordering if NONE
is passed.
|
||
// Prior to v6.x.x of ibc-go, the controller module was only functional as middleware, with authentication performed | ||
// by the underlying application. For a full summary of the changes in v6.x.x, please see ADR009. | ||
// This API will be removed in later releases. |
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.
I used the same godoc as for RegisterInterchainAccount
. If someone thinks I should add something, let me know.
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.
lgtm
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.
Nice work @crodriguezvega! LGTM
// - An error is returned if the port identifier is already in use. Gaining access to interchain accounts whose channels | ||
// have closed cannot be done with this function. A regular MsgChannelOpenInit must be used. | ||
// | ||
// Deprecated: this is a legacy API that is only intended to function correctly in workflows where an underlying authentication application has been set. |
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.
We deprecated this in ibc-go/v6. We should discuss what it would mean to remove these APIs in favour of migrating directly to msg service router, and what users may be affected.
i.e. removing RegisterInterchainAccount
public function used by "auth modules" and instead they depend on the baseapp MsgServiceRouter
and send MsgRegisterInterchainAccount
.
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.
Thanks, @damiannolan. Yes, I agree we should discuss this. I was also thinking that if we get to ICS27 v2 this year, that might be a good moment to tackle that.
Description
As requested by @womensrights, the default ordering for ICA channels is changed to UNORDERED.
If the approach I followed in this backport is approved, then I can do similar changes for the backport to v7.5.x.
closes: #XXXX
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
).godoc
comments.Files changed
in the GitHub PR explorer.SonarCloud Report
in the comment section below once CI passes.