From f13b04522a233db0e1103a3d6bbffc1c97db7644 Mon Sep 17 00:00:00 2001 From: PJColombo Date: Fri, 17 May 2024 19:30:23 +0200 Subject: [PATCH] fix(indexer): correct historical syncing task initiation condition --- src/indexer/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/indexer/mod.rs b/src/indexer/mod.rs index a552f1a..17dd8c4 100644 --- a/src/indexer/mod.rs +++ b/src/indexer/mod.rs @@ -148,7 +148,7 @@ impl Indexer { let end_block_id = end_block_id.unwrap_or(BlockId::Slot(self.dencun_fork_slot - 1)); let historical_sync_completed = - matches!(end_block_id, BlockId::Slot(slot) if slot < self.dencun_fork_slot); + matches!(current_lower_block_id, BlockId::Slot(slot) if slot < self.dencun_fork_slot); if !self.disable_sync_historical && !historical_sync_completed { self._start_historical_syncing_task(tx1, current_lower_block_id, end_block_id);