You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think we can possibly leave the MustAbortUpgrade function in 04-channel now? And just add a simple callback to the app within the core/keeper handler:
if upgradeErr, ok := err.(*channeltypes.UpgradeError); ok {
k.ChannelKeeper.MustAbortUpgrade(ctx, msg.PortId, msg.ChannelId, upgradeErr)
+ cbs.OnChanUpgradeRestore(ctx, msg.PortId, msg.ChannelId)
// NOTE: a FAILURE result is returned to the client and an error receipt is written to state.
// This signals to the relayer to begin the cancel upgrade handshake subprotocol.
return &channeltypes.MsgChannelUpgradeAckResponse{Result: channeltypes.FAILURE}, nil
}
Summary
see discussion, move handle abort to msg server layer so it can call the on restore callback
For Admin Use
The text was updated successfully, but these errors were encountered: