Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
shaspitz committed Jul 11, 2023
1 parent ea2330e commit 6966428
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions x/ccv/consumer/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,7 @@ func (am AppModule) BeginBlock(ctx sdk.Context, req abci.RequestBeginBlock) {
channelID, found := am.keeper.GetProviderChannel(ctx)
if found && am.keeper.IsChannelClosed(ctx, channelID) {
// The CCV channel was established, but it was then closed;
// the consumer chain is no longer safe, thus it MUST shut down.
// This is achieved by panicking, similar as it's done in the
// x/upgrade module of cosmos-sdk.
// the consumer chain is not secured anymore, but we allow it to run as a POA chain and log an error.
channelClosedMsg := fmt.Sprintf("CCV channel %q was closed - shutdown consumer chain since it is not secured anymore", channelID)
am.keeper.Logger(ctx).Error(channelClosedMsg)
}
Expand Down

0 comments on commit 6966428

Please sign in to comment.