-
Notifications
You must be signed in to change notification settings - Fork 50
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
[tunnel] Check Route readiness #535
base: master
Are you sure you want to change the base?
Conversation
case *types.IBCRoute: | ||
portID := PortIDForTunnel(tunnelID) | ||
|
||
// retrieve the dynamic capability for this channel | ||
_, found := k.scopedKeeper.GetCapability( | ||
ctx, | ||
host.ChannelCapabilityPath(portID, route.ChannelID), | ||
) | ||
return found |
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.
do we need to check if it's open channel as well? or it's already done that?
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 yes, need to update on MsgUpdateRoute as well?
route, err := tunnel.GetRouteValue() | ||
if err != nil { | ||
return err | ||
} | ||
|
||
// check whether the router is ready or not | ||
if !k.IsRouteReady(ctx, route, tunnelID) { | ||
return types.ErrRouteNotReady.Wrapf("tunnelID: %d", tunnelID) | ||
} | ||
|
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.
move this to above of set active tunnel ID,, prevent state changes.
Fixed:
Implementation details
Please ensure the following requirements are met before submitting a pull request:
CHANGELOG_UNRELEASED.md
Files changed
tab in the Github PR explorer)