From cdc39a744eaa6f2a017d0c49dd001c4e647352ba Mon Sep 17 00:00:00 2001 From: greged93 <82421016+greged93@users.noreply.github.com> Date: Wed, 21 Aug 2024 20:08:27 -0700 Subject: [PATCH] fix: range update (#10424) --- crates/storage/provider/src/providers/blockchain_provider.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/storage/provider/src/providers/blockchain_provider.rs b/crates/storage/provider/src/providers/blockchain_provider.rs index 70fc80ee3a..f7cee4955c 100644 --- a/crates/storage/provider/src/providers/blockchain_provider.rs +++ b/crates/storage/provider/src/providers/blockchain_provider.rs @@ -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 { @@ -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 {