From 2b8b45da35c0fe2c28100d7f08ec3d6c86229713 Mon Sep 17 00:00:00 2001 From: mmsqe Date: Wed, 1 May 2024 23:04:42 +0800 Subject: [PATCH] fix: avoid counterparty recv packet message get removed before open channel this change was related to https://github.com/cosmos/relayer/pull/1393/commits/8b7184bfbbb6def03dce9dc3650beac81d18efca --- CHANGELOG.md | 1 + relayer/processor/path_end_runtime.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 65a5dd6e4..f15cfb034 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ * [\#1326](https://github.com/cosmos/relayer/pull/1326) Avoid sending channel close confirm message after channel get closed successfully. * [\#1364](https://github.com/cosmos/relayer/pull/1364) Include feegrant message when calculate gas. * [\#1390](https://github.com/cosmos/relayer/pull/1390) Avoid no concrete type registered for type URL error of EthAccount. +* [\#1455](https://github.com/cosmos/relayer/pull/1455) Avoid counterparty recv packet message get removed before open channel. ## v0.9.3 diff --git a/relayer/processor/path_end_runtime.go b/relayer/processor/path_end_runtime.go index 687553eb6..3a9fce2f7 100644 --- a/relayer/processor/path_end_runtime.go +++ b/relayer/processor/path_end_runtime.go @@ -637,7 +637,7 @@ func (pathEnd *pathEndRuntime) removePacketRetention( // delete all packet flow retention history for this sequence pathEnd.messageCache.PacketFlow[k].DeleteMessages(toDelete) - counterparty.messageCache.PacketFlow[k.Counterparty()].DeleteMessages(toDeleteCounterparty) + counterparty.messageCache.PacketFlow[k].DeleteMessages(toDeleteCounterparty) } // shouldSendConnectionMessage determines if the connection handshake message should be sent now.