Fix: Return empty command instead of panic for empty ibc timeout_packet #847
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue:
panic: panic when parsing block at height 13123448: missing
timeout_packetevent in TxsResult log
Got empty
timeout_packet
inmsg_index=1
loghttps://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
Solution:
Skip the extra IBC timeout message