Skip to content

Commit

Permalink
fix stuck packet
Browse files Browse the repository at this point in the history
  • Loading branch information
boojamya committed Apr 9, 2024
1 parent 9e4ac98 commit f0c5313
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 f0c5313

Please sign in to comment.