Skip to content

Commit

Permalink
fix: fixed issue of skipping blocks when error occurred
Browse files Browse the repository at this point in the history
  • Loading branch information
bcsainju committed Aug 6, 2024
1 parent 91b4f3c commit ba75215
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions relayer/chains/wasm/wasm_chain_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -567,14 +567,14 @@ func (ccp *WasmChainProcessor) queryCycle(ctx context.Context, persistence *quer
if newLatestQueriedBlock == persistence.latestQueriedBlock {
return nil
}
persistence.latestQueriedBlock = newLatestQueriedBlock

if !ppChanged {
if firstTimeInSync {
for _, pp := range ccp.pathProcessors {
pp.ProcessBacklogIfReady()
}
}

persistence.latestQueriedBlock = newLatestQueriedBlock
return nil
}

Expand All @@ -599,7 +599,7 @@ func (ccp *WasmChainProcessor) queryCycle(ctx context.Context, persistence *quer
IBCHeaderCache: ibcHeaderCache.Clone(),
})
}

persistence.latestQueriedBlock = newLatestQueriedBlock
return nil
}

Expand Down

0 comments on commit ba75215

Please sign in to comment.