From 9d111a87c68ac85046d84b7364ac30b711cec144 Mon Sep 17 00:00:00 2001 From: Shawn <44221603+smarshall-spitzbart@users.noreply.github.com> Date: Mon, 7 Aug 2023 13:41:28 -0700 Subject: [PATCH] better comment --- x/ccv/consumer/keeper/relay.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/x/ccv/consumer/keeper/relay.go b/x/ccv/consumer/keeper/relay.go index 98aa9bd8f5..21d72ba4ce 100644 --- a/x/ccv/consumer/keeper/relay.go +++ b/x/ccv/consumer/keeper/relay.go @@ -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