Skip to content

Commit

Permalink
better comment
Browse files Browse the repository at this point in the history
  • Loading branch information
shaspitz committed Aug 7, 2023
1 parent a972fd4 commit 9d111a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x/ccv/consumer/keeper/relay.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,9 @@ func (k Keeper) SendPackets(ctx sdk.Context) {
// This flag will be toggled false again when consumer hears back from provider. See OnAcknowledgementPacket below.
if p.Type == ccv.SlashPacket {
k.UpdateSlashRecordOnSend(ctx)
// Break so slash stays at head of queue
// Break so slash stays at head of queue.
// This blocks the sending of any other packet until the leading slash packet is handled.
// Also see OnAcknowledgementPacket below which will eventually delete the leading slash packet.
break
}
// Otherwise the vsc matured will be deleted
Expand Down

0 comments on commit 9d111a8

Please sign in to comment.