Skip to content

Commit

Permalink
rf: add buffer height for extra precaution
Browse files Browse the repository at this point in the history
  • Loading branch information
debendraoli committed Jun 4, 2024
1 parent 89bcf6d commit db31d28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion relayer/chains/evm/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (p *Provider) Listener(ctx context.Context, lastSavedHeight uint64, blockIn
for i := startHeight; i < latestHeight; i += p.cfg.BlockBatchSize {
end := i + p.cfg.BlockBatchSize
if end > latestHeight {
end = latestHeight
end = latestHeight + 1
}
blockReqs = append(blockReqs, &blockReq{start: i, end: end, retry: maxBlockQueryFailedRetry})
}
Expand Down

0 comments on commit db31d28

Please sign in to comment.