Skip to content

Commit

Permalink
fix: Increased latest height query timeout (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
omritoptix authored Aug 28, 2023
1 parent 6900680 commit 3e23413
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions relayer/chains/cosmos/cosmos_chain_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func NewCosmosChainProcessor(log *zap.Logger, provider *cosmos.CosmosProvider) *
}

const (
queryTimeout = 5 * time.Second
queryTimeout = 30 * time.Second
blockResultsQueryTimeout = 2 * time.Minute
latestHeightQueryRetryDelay = 1 * time.Second
latestHeightQueryRetries = 5
Expand Down Expand Up @@ -329,7 +329,7 @@ func (ccp *CosmosChainProcessor) queryCycle(ctx context.Context, persistence *qu

ibcHeaderCache[heightUint64] = latestHeader
ppChanged = true

ccp.log.Info("Processing IBC messages for block", zap.Uint64("height", heightUint64))
for _, tx := range blockRes.TxsResults {
if tx.Code != 0 {
// tx was not successful
Expand Down

0 comments on commit 3e23413

Please sign in to comment.