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

Fix: Return empty command instead of panic for empty ibc timeout_packet #847

Merged
merged 2 commits into from
Aug 23, 2023

Conversation

vincentysc
Copy link
Contributor

Issue:

panic: panic when parsing block at height 13123448: missing timeout_packet event in TxsResult log

Got empty timeout_packet in msg_index=1 log
https://rest.mainnet.crypto.org/cosmos/tx/v1beta1/txs/1865B4678750DD77E1834BA78A5FCAE4D827B91DA101C4BBB6492793038D4CA7

IBC transfer refunded in DD7E643082DC29337CFC09D033A509D1EF4D0693DFD0C483CE4D1C0147B00A60

but show in 1865B4678750DD77E1834BA78A5FCAE4D827B91DA101C4BBB6492793038D4CA7 too with empty timeout_packet

The refund data

{
  "amount": "300000000",
  "denom": "basecro",
  "receiver": "umee163ndtplrrpkh2faf2c0y6t9v86llx86qqa0dul",
  "sender": "cro163ndtplrrpkh2faf2c0y6t9v86llx86q2s6tyu"
}

Solution:

Skip the extra IBC timeout message

@vincentysc vincentysc merged commit 39dfb19 into master Aug 23, 2023
4 checks passed
@vincentysc vincentysc deleted the fix/ibc-timeout branch August 23, 2023 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants