LPsLux Proposals
Consensus Systems
LP-600

Bounded Re-poll and Ancestor Catch-Up

Final

Two resilience requirements for the chain engine — a node that receives a block whose parent it lacks must fetch that ancestor and vote once contiguous, and re-polling a block that has not resolved must back off exponentially and stop, so a stalled block costs a bounded number of queries instead of an unbounded storm

Category
Core
Created
2026-06-25

Abstract

Two mechanisms keep a chain engine live when one node falls behind, and their absence produces two distinct failures. Without runtime ancestor catch-up, a follower that is missing block N can never vote on block N+1, because it cannot verify a block whose parent it does not hold; it is stranded, and the votes it would have cast are simply absent from every subsequent quorum. Without bounded re-poll, the proposer that is short of those votes re-solicits the entire validator set on a free-running timer forever, and the network inflicts a query storm on itself in proportion to how badly it is already stuck. The two compound: the stranded follower guarantees the missing votes, and the missing votes guarantee the storm.

This LP specifies both mechanisms, the four adversarial constraints a correct implementation must satisfy, and empirical acceptance criteria.

Motivation

A block whose parent is absent is unverifiable, not invalid. The engine must therefore distinguish "I reject this block" from "I cannot yet evaluate this block", and act on the second by fetching what is missing rather than by staying silent. One function, one place: catch me up when I am behind.

Symmetrically, re-polling is a backstop against a dropped message, not a schedule. Driving it from a fixed-interval ticker makes the query rate a function of the tick interval rather than of the number of unresolved blocks, so the cost of a single stuck block grows without bound and is worst on the fastest-configured networks. On a network configured with a 5 ms round timeout, an uncapped ticker re-solicits every validator hundreds of times per second per proposer. The query rate must be a function of how long a specific block has been unresolved, and it must terminate.

Neither mechanism weakens the certificate gate. A block is accepted only through a verified quorum certificate (α-of-K, strictly greater than ⅔ by stake, epoch-bound); this LP changes what a node does while that certificate has not yet formed, never what it takes to form one.

Specification

1. Runtime ancestor catch-up

When a node receives a push query or verified gossip block whose parent it does not have, it MUST:

  • request the missing ancestor or ancestors,
  • park the received block pending its dependencies, and
  • evaluate and vote on it once the chain is contiguous.

A block whose parent is provably abandoned is itself abandoned — the mechanism is bounded, not open-ended. The ancestor-fetch primitive is the existing context-request message in the router; implementations MUST use it rather than introduce a second way to ask for a block.

2. Bounded, event-driven re-poll

Replace fixed-interval re-polling with:

  1. Event-driven certificate assembly on each incoming vote — the common case never needs a timer at all.
  2. A re-poll backstop with exponential backoff per block (for example 250 ms → 500 ms → 1 s → … capped at 8–16 s) and a hard attempt cap. Past the cap, polling for that block stops.

3. Do not poll peers known to be behind the block's parent

A peer that lacks the parent cannot vote on the child. Sync it; do not vote-spam it.

4. The certificate gate is unchanged

Acceptance still requires a verified quorum certificate — α-of-K, strictly greater than ⅔ by stake, weighted verification, epoch binding intact, no self-finality. Every chain accepts blocks through that one gate and no other.

Adversarial constraints

Each mechanism above has a concrete exploit if implemented naively. A conforming implementation MUST satisfy all four constraints.

G1 — Ancestor fetch must be bounded

An unbounded fetch converts the self-inflicted storm into an attacker-targeted one: a single push query naming a block with a fabricated far-back or chained parent would drive the victim into an unbounded ancestor-request storm. Required bounds:

  1. parse and sanity-check the pushed block before fetching anything;
  2. cap outstanding ancestor requests;
  3. fetch only from the sender of the push query;
  4. abandon the branch if the parent does not resolve within a bound;
  5. rate-limit per peer.

G2 — Skipping behind peers gates sample selection only, never the α denominator

Excluding a behind peer from the poll sample is correct — it cannot vote. Excluding it from α is a split-brain safety fork: an attacker who slows three honest nodes with latency or jitter makes them look behind, and if α recomputes over the remaining live set, the two survivors finalize at α = 2 and certify conflicting blocks. α MUST stay anchored to the full registered validator set. Required test: a "behind"-labelled honest majority cannot be dropped below the ⅔ floor.

G3 — Cap-then-abandon drops the poll, never a locally accepted block

If a proposer abandons a block after N re-polls while other nodes have already finalized it — they hold the certificate — then abandoning on the proposer is not un-accepting on the others, and the result is permanent divergence. The recovery direction is always catch the laggard up, never drop the tip. Abandon means stop polling, and nothing else.

G4 — Event-driven still needs a bounded slow backstop

A purely event-driven design re-introduces the terminal stall the moment a first push query is dropped. Required: exponential backoff up to the cap, plus a slow floor of at most one query per second, plus a max-pending-blocks throttle. Without the last one, build-ahead amplifies the storm — an engine whose block-building loop has no outstanding-block cap produces more unresolved blocks the further behind it gets.

Acceptance criteria

Measured, not asserted.

Criterion
A1A follower behind by N blocks (N ∈ {1, 5, 50}) auto-recovers to the tip via ancestor fetch and resumes voting — proven in an integration test and on a live five-validator network by killing and restarting one node and confirming it rejoins voting with no manual state reset.
A2The push-query rate for a stuck block is bounded: with one permanently-behind peer, the measured call count over 60 s is O(log) in elapsed time, not linear — assert a small constant (for example ≤ 20 over 60 s). The bound must hold at the shortest configured round timeout, not only at the default.
A3A stuck block past the attempt cap is abandoned, not re-polled forever.
A4The certificate gate is unchanged: the unforgeable-certificate, no-accept-without-quorum, and bridge tests still pass.
A5End-to-end: a chain finalizes a full order block (open market → place → submit → fill) on devnet, testnet and mainnet with every validator voting, with no poll storm during.

Rejoin requirements

Ancestor catch-up is an engine property, but on a fleet that starts nodes with bootstrap skipped it is only half the invariant. The node layer MUST also satisfy:

  • A behind validator on a sybil-protected primary network peer-syncs from beacons rather than wiping and declaring its own stale local tip to be the frontier. A node that names its stale tip the frontier reports itself healthy and bootstrapped while frozen, which is the worst possible failure signature. Frontier trust-anchor design is LP-0610.
  • The discriminator is the network a chain validates on, not a symbolic chain identifier. Gating this behaviour on a match against a symbolic native-chain alias silently disables it for every deployed chain, because deployed chains carry hash blockchain IDs and the alias never matches. Discriminate on "this chain validates on the primary network"; primary-network chains keep staked beacons, L2s keep the empty-beacon single-node path. This distinction MUST carry a regression test that uses a real hash blockchain ID.
  • VM startup timeout must accommodate state sync. A VM performing state sync on rejoin legitimately takes minutes to initialize; a 30-second bound kills it mid-catch-up and the node thrashes. Bound it in minutes.
  • Plugin and node must agree on the wire. A plugin built against a stale transport module and a node pinned to a newer one fail the VM initialize handshake with an unexpected EOF, which presents as a dead chain rather than a version mismatch. Version alignment is a release-gate check.

Security Considerations

  1. Fetching is a privilege an attacker will use. G1 exists because the naive fix to a self-inflicted storm is an attacker-controlled storm. Bound the fetch before shipping the fetch.
  2. Never recompute a safety threshold from liveness data. G2 is the sharpest rule here: "who is reachable" is an availability observation and must never become the denominator of a safety threshold. That substitution is how a liveness patch becomes a fork.
  3. Asymmetric recovery. G3 encodes the direction: state moves toward the tip, never away from it. Any recovery step that removes an accepted block is a safety failure wearing a liveness costume.
  4. Bounded is not zero. G4 keeps a slow floor deliberately. A protocol with no backstop is one dropped datagram away from a terminal stall.

Reference implementation

ConcernLocation
Engine re-poll and query fan-outluxfi/consensus engine/chain/engine.go
Ancestor-fetch primitiveluxfi/consensus core/router/router.go (context request / response)
Certificate gateluxfi/consensus engine/chain/cert.go
Round timeout configurationluxfi/consensus config/quorum_threshold.go
Rejoin / beacon pathluxfi/node chains/bootstrap_sync.go, chains/manager.go

Copyright and related rights waived via CC0.