Skip to content

Commit

Permalink
cleanup state on chain removal
Browse files Browse the repository at this point in the history
  • Loading branch information
mpoke committed Nov 17, 2023
1 parent 15cf230 commit 5675f8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions x/ccv/provider/keeper/proposal.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ func (k Keeper) StopConsumerChain(ctx sdk.Context, chainID string, closeChan boo
k.DeleteInitTimeoutTimestamp(ctx, chainID)
// Note: this call panics if the key assignment state is invalid
k.DeleteKeyAssignments(ctx, chainID)
k.DeleteEquivocationEvidenceMinHeight(ctx, chainID)

// close channel and delete the mappings between chain ID and channel ID
if channelID, found := k.GetChainToChannel(ctx, chainID); found {
Expand Down

0 comments on commit 5675f8c

Please sign in to comment.