Skip to content

Commit

Permalink
handle blockRange properly
Browse files Browse the repository at this point in the history
  • Loading branch information
fbac committed Jan 30, 2025
1 parent 1274ca8 commit daba121
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/indexer/reorgHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ func (r *ReorgHandler) searchInRange(blocks []queries.GetBlocksInRangeRow) (uint
func blockRange(from uint64) (startBlock uint64, endBlock uint64) {
endBlock = from

if endBlock > BLOCK_RANGE_SIZE {
if endBlock >= BLOCK_RANGE_SIZE {
startBlock = endBlock - BLOCK_RANGE_SIZE
}

Expand Down

0 comments on commit daba121

Please sign in to comment.