Skip to content

Commit

Permalink
Fix wrong sequence number in MsgTimeoutOnClose (#3440)
Browse files Browse the repository at this point in the history
The MsgTimeoutOnClose requires sequence of dstchannel.NextRecv in ordered channels, rather than packet.Sequence.
The code above resolve the sequence for ordered and unordered, just while creating msg it is ignored.

Signed-off-by: Puneet <[email protected]>
  • Loading branch information
puneet2019 authored Jul 10, 2023
1 parent 0692d92 commit 7ec23d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/relayer/src/link/relay_path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1336,7 +1336,7 @@ impl<ChainA: ChainHandle, ChainB: ChainHandle> RelayPath<ChainA, ChainB> {

let msg = MsgTimeoutOnClose::new(
packet.clone(),
packet.sequence,
next_sequence_received,
proofs.clone(),
self.src_signer()?,
);
Expand Down

0 comments on commit 7ec23d1

Please sign in to comment.