From b4895a98784170568a4babd4c217a722fcd584f1 Mon Sep 17 00:00:00 2001 From: Gregory Edison Date: Wed, 21 Aug 2024 18:36:29 +0200 Subject: [PATCH] fix range update --- 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 12466f399672..68d2c0534139 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 {