Skip to content

Commit

Permalink
chore: reduced blocks to sync
Browse files Browse the repository at this point in the history
  • Loading branch information
bcsainju committed Aug 1, 2024
1 parent 905ce94 commit 442a131
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 @@ -454,7 +454,7 @@ func (ccp *WasmChainProcessor) queryCycle(ctx context.Context, persistence *quer

syncUpHeight := func() int64 {
if ccp.chainProvider.rangeSupport {
return persistence.latestHeight - inSyncNumBlocksThreshold + 1
return persistence.latestHeight - inSyncNumBlocksThreshold + 2
}
if persistence.latestHeight-persistence.latestQueriedBlock > MaxBlockFetch {
return persistence.latestQueriedBlock + MaxBlockFetch
Expand Down

0 comments on commit 442a131

Please sign in to comment.