Skip to content

Commit

Permalink
skip the genesis slot
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Coats committed Feb 26, 2024
1 parent b96ccb5 commit 547aed0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/bin/inx-chronicle/inx/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ impl InxWorker {
.first_slot_of(node_status.pruning_epoch);

// Check if there is an unfixable gap in our node data.
let start_index = if let Some(latest_committed_slot) = self
let mut start_index = if let Some(latest_committed_slot) = self
.db
.collection::<CommittedSlotCollection>()
.get_latest_committed_slot()
Expand All @@ -150,6 +150,10 @@ impl InxWorker {
} else {
self.config.sync_start_slot.max(pruning_slot)
};
// Skip the genesis slot
if start_index == node_configuration.latest_parameters().genesis_slot() {
start_index += 1;
}

if let Some(db_node_config) = self
.db
Expand Down

0 comments on commit 547aed0

Please sign in to comment.