Skip to content

Commit

Permalink
fix: fixed query to adjust last saved height
Browse files Browse the repository at this point in the history
  • Loading branch information
bcsainju committed Aug 12, 2024
1 parent 5ab7b29 commit b13b1e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion relayer/chains/wasm/wasm_chain_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ func (ccp *WasmChainProcessor) initializeChannelState(ctx context.Context) error

func (ccp *WasmChainProcessor) getBlocksToProcess(ctx context.Context, blockToRequest int64) ([]int64, error) {
ibcHandlerAddr := ccp.chainProvider.PCfg.IbcHandlerAddress
queryFilter := fmt.Sprintf("tx.height>%d AND execute._contract_address='%s'",
queryFilter := fmt.Sprintf("tx.height>=%d AND execute._contract_address='%s'",
blockToRequest, ibcHandlerAddr)
queryCtx, cancelQueryCtx := context.WithTimeout(ctx, blockResultsQueryTimeout)
defer cancelQueryCtx()
Expand Down

0 comments on commit b13b1e0

Please sign in to comment.