Skip to content

Commit

Permalink
Check for empty Tx response when querying packet events (informalsyst…
Browse files Browse the repository at this point in the history
…ems#852)

* Check for empty Tx response when querying packets

* Update changelog

* Fix typos
  • Loading branch information
ancazamfir authored Apr 26, 2021
1 parent e2322a2 commit 23432fb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

- [ibc-relayer]
- Fix pagination in gRPC query for clients ([#811])
- Fix relayer crash when hermes starts in the same time as packets are being sent ([#851])

### BREAKING CHANGES

Expand All @@ -19,6 +20,7 @@

[#785]: https://github.com/informalsystems/ibc-rs/issues/785
[#811]: https://github.com/informalsystems/ibc-rs/issues/811
[#851]: https://github.com/informalsystems/ibc-rs/issues/851


## v0.2.0
Expand Down
4 changes: 4 additions & 0 deletions relayer/src/chain/cosmos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -992,6 +992,10 @@ impl Chain for CosmosSdkChain {
"packet_from_tx_search_response: unexpected number of txs"
);

if response.txs.is_empty() {
continue;
}

if let Some(event) = packet_from_tx_search_response(
self.id(),
&request,
Expand Down

0 comments on commit 23432fb

Please sign in to comment.