From 5675f8c6360b1288fe60ffc84f68c04a5ca9bcec Mon Sep 17 00:00:00 2001 From: mpoke Date: Fri, 17 Nov 2023 10:39:36 +0100 Subject: [PATCH] cleanup state on chain removal --- x/ccv/provider/keeper/proposal.go | 1 + 1 file changed, 1 insertion(+) diff --git a/x/ccv/provider/keeper/proposal.go b/x/ccv/provider/keeper/proposal.go index 292e003365..9c08297055 100644 --- a/x/ccv/provider/keeper/proposal.go +++ b/x/ccv/provider/keeper/proposal.go @@ -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 {