Skip to content

Commit

Permalink
Closing non-CCV channels on provider (#328)
Browse files Browse the repository at this point in the history
remove chanCloseInit

Co-authored-by: Jehan <[email protected]>
  • Loading branch information
mpoke and jtremback authored Sep 7, 2022
1 parent 35f3322 commit b81a07d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions x/ccv/provider/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,6 @@ func (k Keeper) SetConsumerChain(ctx sdk.Context, channelID string) error {
// Verify that there isn't already a CCV channel for the consumer chain
// If there is, then close the channel.
if prevChannel, ok := k.GetChannelToChain(ctx, chainID); ok {
if err := k.chanCloseInit(ctx, channelID); err != nil {
return err
}
return sdkerrors.Wrapf(ccv.ErrDuplicateChannel, "CCV channel with ID: %s already created for consumer chain %s", prevChannel, chainID)
}

Expand Down

0 comments on commit b81a07d

Please sign in to comment.