From e769eeb2beebc6aa68d901c393fbd2b844ef17f0 Mon Sep 17 00:00:00 2001 From: DimitrisJim Date: Mon, 11 Nov 2024 16:15:24 +0200 Subject: [PATCH] chore: revert exporting of deletePacketCommitment. --- modules/core/04-channel/keeper/keeper.go | 2 +- modules/core/04-channel/keeper/packet.go | 2 +- modules/core/04-channel/keeper/timeout.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/core/04-channel/keeper/keeper.go b/modules/core/04-channel/keeper/keeper.go index 1dddc74e126..db81e134084 100644 --- a/modules/core/04-channel/keeper/keeper.go +++ b/modules/core/04-channel/keeper/keeper.go @@ -267,7 +267,7 @@ func (k *Keeper) SetPacketCommitment(ctx context.Context, portID, channelID stri } } -func (k *Keeper) DeletePacketCommitment(ctx context.Context, portID, channelID string, sequence uint64) { +func (k *Keeper) deletePacketCommitment(ctx context.Context, portID, channelID string, sequence uint64) { store := k.storeService.OpenKVStore(ctx) if err := store.Delete(host.PacketCommitmentKey(portID, channelID, sequence)); err != nil { panic(err) diff --git a/modules/core/04-channel/keeper/packet.go b/modules/core/04-channel/keeper/packet.go index 89630094748..4be14bbf330 100644 --- a/modules/core/04-channel/keeper/packet.go +++ b/modules/core/04-channel/keeper/packet.go @@ -441,7 +441,7 @@ func (k *Keeper) AcknowledgePacket( } // Delete packet commitment, since the packet has been acknowledged, the commitement is no longer necessary - k.DeletePacketCommitment(ctx, packet.GetSourcePort(), packet.GetSourceChannel(), packet.GetSequence()) + k.deletePacketCommitment(ctx, packet.GetSourcePort(), packet.GetSourceChannel(), packet.GetSequence()) // log that a packet has been acknowledged k.Logger(ctx).Info( diff --git a/modules/core/04-channel/keeper/timeout.go b/modules/core/04-channel/keeper/timeout.go index 0e2b9817e05..b7d39b843c4 100644 --- a/modules/core/04-channel/keeper/timeout.go +++ b/modules/core/04-channel/keeper/timeout.go @@ -132,7 +132,7 @@ func (k *Keeper) timeoutExecuted( channel types.Channel, packet types.Packet, ) error { - k.DeletePacketCommitment(ctx, packet.GetSourcePort(), packet.GetSourceChannel(), packet.GetSequence()) + k.deletePacketCommitment(ctx, packet.GetSourcePort(), packet.GetSourceChannel(), packet.GetSequence()) // if an upgrade is in progress, handling packet flushing and update channel state appropriately if channel.State == types.FLUSHING && channel.Ordering == types.UNORDERED {