From 72b963d30402dcb69e5fd66d96d7a2aea271ff41 Mon Sep 17 00:00:00 2001 From: tedison Date: Wed, 11 Dec 2024 11:55:10 -0500 Subject: [PATCH] fetch data from hardcoded start block --- crates/torii/core/src/engine.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/torii/core/src/engine.rs b/crates/torii/core/src/engine.rs index a51b593844..73689996b8 100644 --- a/crates/torii/core/src/engine.rs +++ b/crates/torii/core/src/engine.rs @@ -323,7 +323,7 @@ impl Engine

{ pub async fn fetch_data(&mut self, cursors: &Cursors) -> Result { let latest_block = self.provider.block_hash_and_number().await?; - let from = cursors.head.unwrap_or(0); + let from = cursors.head.unwrap_or(948000); let total_remaining_blocks = latest_block.block_number - from; let blocks_to_process = total_remaining_blocks.min(self.config.blocks_chunk_size); let to = from + blocks_to_process;