Skip to content

Commit

Permalink
Add some sweet godoc for this bad boy.
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitrisJim committed Aug 16, 2023
1 parent 88d2e86 commit 97c38a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/core/04-channel/keeper/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,10 @@ func (k Keeper) WriteUpgradeAckChannel(ctx sdk.Context, portID, channelID string
emitChannelUpgradeAckEvent(ctx, portID, channelID, channel, upgrade)
}

// WriteUpgradeConfirmChannel writes a channel which has successfully passed the ChanUpgradeConfirm handshake step.
// If the channel has no in-flight packets, its state is updated to indicate that flushing has completed. Otherwise, the counterparty upgrade is set
// and the channel state is left unchanged.
// An event is emitted for the handshake step.
func (k Keeper) WriteUpgradeConfirmChannel(ctx sdk.Context, portID, channelID string, counterpartyUpgrade types.Upgrade) {
defer telemetry.IncrCounter(1, "ibc", "channel", "upgrade-confirm")

Expand Down

0 comments on commit 97c38a8

Please sign in to comment.