diff --git a/crates/storage/provider/src/providers/blockchain_provider.rs b/crates/storage/provider/src/providers/blockchain_provider.rs index 3fae8b39e7..6592a2c19d 100644 --- a/crates/storage/provider/src/providers/blockchain_provider.rs +++ b/crates/storage/provider/src/providers/blockchain_provider.rs @@ -638,7 +638,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 {