Skip to content

Commit

Permalink
fix(indexer): correct historical syncing task initiation condition
Browse files Browse the repository at this point in the history
  • Loading branch information
PJColombo committed May 17, 2024
1 parent 533b4ba commit f13b045
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/indexer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f13b045

Please sign in to comment.