Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for empty Tx response when querying packet events #852

Merged
merged 3 commits into from
Apr 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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