-
Notifications
You must be signed in to change notification settings - Fork 590
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
Use new port router for onchanupgradetry #7067
Use new port router for onchanupgradetry #7067
Conversation
@@ -74,6 +74,50 @@ func (im *LegacyIBCModule) OnChanOpenInit( | |||
return reconstructVersion(im.cbs, negotiatedVersions) | |||
} | |||
|
|||
// OnChanOpenTry implements the IBCModule interface. | |||
func (im *LegacyIBCModule) OnChanOpenTry( |
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.
this is almost an exact duplicate, I played around with trying to generalize the Init/Try functions, but it ended up looking even uglier, happy to revisit this idea, but I think it's fine as is for now unless someone has a suggestion for removing the duplication.
Quality Gate passed for 'ibc-go'Issues Measures |
// lower down in the stack. Thus, if it is not a fee version we pass the entire version string onto the underlying | ||
// application. | ||
return im.app.OnChanOpenTry(ctx, order, connectionHops, portID, channelID, counterparty, counterpartyVersion) | ||
if strings.TrimSpace(counterpartyVersion) != "" && counterpartyVersion != types.Version { |
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.
if strings.TrimSpace(counterpartyVersion) != "" && counterpartyVersion != types.Version { | |
if counterpartyVersion != types.Version { |
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 think on Try, the version must be 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.
makes sense!
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.
ACK, see comment. Quick work and excellently done!
Description
Marking as R4R for E2Es
closes: #7027
This PR refactors fee middleware, ICA and callbacks to use the new port router.
Some wiring changes in app.gos needed to be fixed also.
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.