chore: docfix w.r.t Copilot

This commit is contained in:
erhant 2026-07-07 11:17:27 +03:00
parent 2c395b95a6
commit 1ca3de47b9

View File

@ -125,15 +125,14 @@ impl IndexerCore {
}) })
} }
/// Detects when the local store belongs to a different chain than the connected L1 /// Detects when the local store belongs to a different chain than the connected
/// (e.g. a wiped/restarted bedrock) so startup can reset instead of silently /// L1 (e.g. a wiped/restarted bedrock) so startup can reset instead of silently
/// diverging. Mostly a dev convenience; won't trigger during normal live indexing. /// diverging. Best-effort dev convenience; won't trigger during normal live indexing.
/// ///
/// Compares the **first** block the channel serves at/after the cursor (the tip's /// Compares the first block the channel serves at/after the read cursor against our
/// recent L1 slot) against our stored block of the *same id*. /// stored block of the same id. Conclusive only while caught up (cursor at the tip);
/// Note that we have to respect the channel's tip slot, because if our tip /// once parked the cursor runs ahead, so the compared id is one we never stored and
/// is ahead of the channel even in the same chain, it may looks like we are /// the result is `Inconclusive` — a genuine reset is then caught by the ingest loop.
/// ahead of the channel, but we are actually on a different chain.
async fn verify_chain_consistency(&self) -> Result<ChainConsistency> { async fn verify_chain_consistency(&self) -> Result<ChainConsistency> {
let Some(cursor) = self.store.get_zone_cursor()? else { let Some(cursor) = self.store.get_zone_cursor()? else {
// if we have no cursor, the store is empty or cold: nothing to compare // if we have no cursor, the store is empty or cold: nothing to compare