Skip to content

Commit

Permalink
fix stuck packet (#1442)
Browse files Browse the repository at this point in the history
  • Loading branch information
boojamya authored Apr 9, 2024
1 parent 9e4ac98 commit b7ea45d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions relayer/chains/cosmos/cosmos_chain_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,11 @@ func (ccp *CosmosChainProcessor) queryCycle(ctx context.Context, persistence *qu
newLatestQueriedBlock == int64(stuckPacket.EndHeight) {
i = persistence.latestHeight
ccp.log.Debug("Parsed stuck packet height, skipping to current")
newLatestQueriedBlock, err = ccp.latestHeightWithRetry(ctx)
if err != nil {
ccp.log.Error("Failed to query node height after max attempts. Consider checking endpoint and retyring for stuck packets")
return err
}
}
}

Expand Down

0 comments on commit b7ea45d

Please sign in to comment.