Skip to content

Commit

Permalink
wasnt indexing the last block in ranges (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
bh2smith authored Nov 28, 2023
1 parent ae9b97c commit 1a0bb92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/indexer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ where
// TODO(bh2smith) - When a new event is introduced with start earlier than previously indexed events,
// we still need to pick up the block-data that we don't already have.
// However, once we have caught up, it would be wasteful to continue querying it.
let block_queries: Vec<(_, _)> = (earliest..to)
let block_queries: Vec<(_, _)> = (earliest..to + 1)
.map(|block: u64| {
(
eth::GetBlockByNumber,
Expand Down

0 comments on commit 1a0bb92

Please sign in to comment.