From 30efa5ab16244a36a78e77596ce1971e786b8c68 Mon Sep 17 00:00:00 2001 From: Aditya Date: Tue, 3 Nov 2020 14:35:54 +0000 Subject: [PATCH] Host Key changes (#7783) * change host keys on sequences * fix prefix names Co-authored-by: Christopher Goes Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- x/ibc/core/24-host/keys.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/x/ibc/core/24-host/keys.go b/x/ibc/core/24-host/keys.go index 0ab66467dc..3a51a13db1 100644 --- a/x/ibc/core/24-host/keys.go +++ b/x/ibc/core/24-host/keys.go @@ -31,9 +31,9 @@ var ( const ( KeyChannelPrefix = "channelEnds" KeyChannelCapabilityPrefix = "capabilities" - KeyNextSeqSendPrefix = "seqSends" - KeyNextSeqRecvPrefix = "seqRecvs" - KeyNextSeqAckPrefix = "seqAcks" + KeyNextSeqSendPrefix = "nextSequenceSend" + KeyNextSeqRecvPrefix = "nextSequenceRecv" + KeyNextSeqAckPrefix = "nextSequenceAck" KeyPacketCommitmentPrefix = "commitments" KeyPacketAckPrefix = "acks" KeyPacketReceiptPrefix = "receipts" @@ -116,17 +116,17 @@ func ChannelCapabilityPath(portID, channelID string) string { // NextSequenceSendPath defines the next send sequence counter store path func NextSequenceSendPath(portID, channelID string) string { - return fmt.Sprintf("%s/", KeyNextSeqSendPrefix) + channelPath(portID, channelID) + "/nextSequenceSend" + return fmt.Sprintf("%s/", KeyNextSeqSendPrefix) + channelPath(portID, channelID) } // NextSequenceRecvPath defines the next receive sequence counter store path func NextSequenceRecvPath(portID, channelID string) string { - return fmt.Sprintf("%s/", KeyNextSeqRecvPrefix) + channelPath(portID, channelID) + "/nextSequenceRecv" + return fmt.Sprintf("%s/", KeyNextSeqRecvPrefix) + channelPath(portID, channelID) } // NextSequenceAckPath defines the next acknowledgement sequence counter store path func NextSequenceAckPath(portID, channelID string) string { - return fmt.Sprintf("%s/", KeyNextSeqAckPrefix) + channelPath(portID, channelID) + "/nextSequenceAck" + return fmt.Sprintf("%s/", KeyNextSeqAckPrefix) + channelPath(portID, channelID) } // PacketCommitmentPath defines the commitments to packet data fields store path