Skip to content

Commit

Permalink
fix: cleanup close init after close confirmed (#1326)
Browse files Browse the repository at this point in the history
* fix: cleanup close init after close confirmed

* Update CHANGELOG.md
  • Loading branch information
mmsqe authored Nov 11, 2023
1 parent 2c60f6c commit 27cf122
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
* [\#1303](https://github.com/cosmos/relayer/pull/1303) Add missing max gas amount on txf to avoid estimate less gas when simualte runTx.
* [\#1324](https://github.com/cosmos/relayer/pull/1324) Add log-level in global config.
* [\#1325](https://github.com/cosmos/relayer/pull/1325) Ignore only file not exist error when loadConfigFile.
* [\#1326](https://github.com/cosmos/relayer/pull/1326) Avoid sending channel close confirm message after channel get closed successfully.

## v0.9.3

Expand Down
4 changes: 4 additions & 0 deletions relayer/processor/path_processor_internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,10 @@ func (pp *PathProcessor) unrelayedChannelCloseMessages(
msgCloseConfirm, pathEndChannelCloseMessages.Src,
) {
res.DstMessages = append(res.DstMessages, msgCloseConfirm)
toDeleteSrc[chantypes.EventTypeChannelCloseInit] = append(
toDeleteSrc[chantypes.EventTypeChannelCloseInit],
chanKey,
)
}

// TODO: confirm chankey does not need modification
Expand Down

0 comments on commit 27cf122

Please sign in to comment.