Skip to content

Commit

Permalink
fix: range update (paradigmxyz#10424)
Browse files Browse the repository at this point in the history
  • Loading branch information
greged93 authored Aug 22, 2024
1 parent dc4643f commit cdc39a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/storage/provider/src/providers/blockchain_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ where
blocks.append(&mut database_blocks);

// Advance the range iterator by the number of blocks fetched from the database
range.nth(database_blocks.len() - 1);
range.nth(blocks.len() - 1);

// Fetch the remaining blocks from the in-memory state
for num in range {
Expand Down Expand Up @@ -696,7 +696,7 @@ where
blocks.append(&mut database_blocks);

// Advance the range iterator by the number of blocks fetched from the database
range.nth(database_blocks.len() - 1);
range.nth(blocks.len() - 1);

// Fetch the remaining blocks from the in-memory state
for num in range {
Expand Down

0 comments on commit cdc39a7

Please sign in to comment.