diff --git a/src/bin/inx-chronicle/inx/error.rs b/src/bin/inx-chronicle/inx/error.rs index bddb72e7f..478751a3d 100644 --- a/src/bin/inx-chronicle/inx/error.rs +++ b/src/bin/inx-chronicle/inx/error.rs @@ -17,6 +17,6 @@ pub enum InxWorkerError { NetworkChanged { old: String, new: String }, #[error("node pruned required slots between `{start}` and `{end}`")] SyncSlotGap { start: SlotIndex, end: SlotIndex }, - #[error("node confirmed slot index `{node}` is less than index in database `{db}`")] + #[error("node accepted block slot index `{node}` is less than index in database `{db}`")] SyncSlotIndexMismatch { node: SlotIndex, db: SlotIndex }, } diff --git a/src/bin/inx-chronicle/inx/mod.rs b/src/bin/inx-chronicle/inx/mod.rs index bef8978af..1365b85b4 100644 --- a/src/bin/inx-chronicle/inx/mod.rs +++ b/src/bin/inx-chronicle/inx/mod.rs @@ -139,9 +139,9 @@ impl InxWorker { start: latest_committed_slot.slot_index + 1, end: pruning_slot, }); - } else if node_status.last_confirmed_block_slot < latest_committed_slot.slot_index { + } else if node_status.last_accepted_block_slot < latest_committed_slot.slot_index { bail!(InxWorkerError::SyncSlotIndexMismatch { - node: node_status.last_confirmed_block_slot, + node: node_status.last_accepted_block_slot, db: latest_committed_slot.slot_index, }); } else {