Skip to main content

bootstrap_head

Function bootstrap_head 

Source
pub fn bootstrap_head(editions: &[Edition], floor: u64) -> Option<usize>
Expand description

The head a bootstrapping client accepts: the per-version winner at the HIGHEST present version ≥ floor, ignoring chain contiguity. A fresh joiner whose genesis was re-anchored away cannot verify lineage at all, so contiguity is the wrong test for it — the real gate is the edition’s signature (verified before folding) plus the author’s CURRENT authority, which the caller resolves against the roster + owner attestation. A relay cannot forge a higher version (no valid signature), so the worst case is a stale-but-valid head that the union + ratchet later upgrade. Returns None if no edition is ≥ floor. Equal-version forks use the same deterministic tiebreak as fold (lower inner edition id) so every client converges on one head.