Bootstrap Trust Anchor
Weak-subjective recovery is a different question from consensus finality and needs a different threshold — a node names its sync frontier from a supermajority of authenticated configured beacons, never from a quorum over current validator stake, so recovery works precisely when validators are down
Abstract
A node that falls behind or starts empty must re-derive the network frontier from peers before it can rejoin consensus. LP-0600 specifies the transport for that — request the missing ancestor, fetch and execute down to the frontier. This LP fixes an orthogonal defect one layer up: which peers get to name the frontier, and by what threshold.
Naming the bootstrap frontier by a quorum over ⅔ of current total validator stake — the consensus finality threshold — produces a mass-recovery deadlock. When the nodes being recovered are themselves part of the validator set, their downtime drops reachable stake below ⅔, so no frontier can ever be named, so the very nodes whose recovery would restore the quorum can never recover. This LP separates bootstrap trust — a weak-subjective availability anchor over the configured beacon set — from consensus finality — BFT safety over the current stake set — as two distinct types with two distinct threat models.
Motivation
The deadlock is arithmetic, not an attack
Take a primary network of five equal-weight validators, each of weight 0.5e18,
total 2.5e18. Two are stranded — one empty, one stale — and the three
producers hold the canonical tip. A stranded node rolls to a bootstrap that
requires connectedStake > TwoThirdsStakeFloor(total):
total stake = 2.5e18
TwoThirdsStakeFloor = 1.666…e18 (strict >)
connected producers = 3 × 0.5e18 = 1.5e18 (60% of total)
1.5e18 > 1.666e18 = FALSE → NoQuorum, forever
The two stranded nodes are two of the five validators. Their 1.0e18 of
stake is exactly the stake the quorum is missing. The recovery is a fixed point
the threshold makes unreachable: you cannot recover the stranded validators
because their own stake is required to form the quorum that would recover them.
No adversary is involved. The network is otherwise healthy. This is a
threshold-model error.
Note the failure mode is not a crash — the node correctly connects to peers, correctly discovers it is behind, correctly declines to false-complete at its stale height, and then fails safe forever. A bootstrap that fails safe and never converges is still an outage.
One threshold doing two jobs
| Consensus finality | Bootstrap recovery | |
|---|---|---|
| Question | "Is this block irreversibly accepted?" | "From which frontier is it safe to begin syncing?" |
| Correct denominator | current validator stake | reachable, authenticated, configured beacons |
| Correct threshold | > ⅔ stake (BFT safety) | configured-beacon availability policy: k-of-n, ⅔–¾ of responders, plus a floor |
| Trust model | the live stake set | the operator's configured beacon anchor (weak subjectivity) |
| When it must work | when ≥ ⅔ stake is live | especially when > ⅓ of validators are down — that is the recovery case |
| Output | a consensus certificate | an availability/trust anchor, not a certificate |
Requiring ⅔ of current stake for bootstrap inverts the availability guarantee:
it works only when you least need it, and deadlocks exactly when you most need
it. The correct model is a weak-subjective bootstrap — wait for a fraction
((3·W + 3)/4, i.e. ¾) of the configured beacon weight to connect, then sync
the chain those beacons serve. Never a quorum over current stake.
Specification
Two types, two threat models
// ConsensusQuorum governs irreversible block acceptance (BFT safety). UNCHANGED.
type ConsensusQuorum interface {
HasFinality(weight StakeWeight, total StakeWeight) bool // > ⅔ of CURRENT validator stake
}
// BootstrapTrust selects a weak-subjective sync frontier from authenticated
// configured beacons. It is NOT a consensus-finality oracle.
type BootstrapTrust interface {
AcceptsFrontier(ctx context.Context, replies []BeaconReply) (*Frontier, error)
}
type BootstrapPolicy struct {
TrustedBeacons BeaconSet // configured / checkpointed / genesis — NEVER peer-self-reported
AgreementThreshold Ratio // ⅔ or ¾ of RESPONDERS
MinResponses int // floor: reject below this many authenticated responders
MinResponseWeight StakeWeight // floor by weight (equivalent for equal-weight sets)
Checkpoint *Checkpoint // optional operator-pinned recent finalized frontier
}
The acceptance decision MUST go through BootstrapPolicy. It MUST NOT reuse
the consensus stake-quorum function with "reachable stake" passed in — that
preserves the conceptual bug behind a new argument. Separate object, separate
threat model.
Invariant 1 — beacon eligibility is non-circular
A recovering node cannot trust "the current validator set" until it has verified the P-chain state that defines that set. Bootstrap beacons are resolved in priority order:
- explicit operator-configured bootstrap nodes / beacon IDs;
- a trusted, finalized P-chain checkpoint;
- the genesis validator/beacon set (initial bootstrap).
After sync, the node resumes live P-chain validator-set tracking. The forbidden path — empty node asks arbitrary peers for the current validator set → peers define who is a beacon → peers define the frontier — is circular and MUST be impossible. A peer outside the configured, checkpointed or genesis anchor has zero weight and is ignored.
Invariant 2 — "reachable" has a floor
The rule is not "⅔ of reachable beacons." It is:
AgreementThreshold(⅔ or ¾) of authenticated responding configured beacons, ANDMinResponses/MinResponseWeightsatisfied.
For a five-beacon network with MinResponses = 3 and AgreementThreshold = ⅔:
| reachable | agreeing | decision |
|---|---|---|
| 3 / 5 | 3 / 3 | accept |
| 2 / 5 | 2 / 2 | reject — below MinResponses |
| 1 / 5 | 1 / 1 | reject, unless an explicit operator checkpoint overrides |
The floor prevents an attacker who partitions a node down to a few beacons from capturing the frontier with a trivially unanimous tiny set.
Invariant 3 — bootstrap acceptance is not finality
AcceptsFrontier returns a frontier meaning "safe enough to begin syncing
from", never "finalized." After descending the gap the node independently
re-verifies ancestry, block validity and chain state (LP-0600 content-addressed
descent plus Verify), then re-enters normal consensus. The bootstrap frontier
is an availability anchor, not a consensus certificate. The test suite MUST
assert this distinction.
Invariant 4 — frontier status is a state, not a boolean
A single ok boolean cannot carry the difference between "no beacons have
connected yet" and "I am caught up", and reading the first as the second makes a
node declare itself bootstrapped at its own local height having fetched nothing.
Frontier status MUST be an explicit state:
type FrontierStatus int // NoBeacons | Connecting | NoQuorum | Named
Invariant 5 — beacon filtering keys on the network, not the chain
Peers advertise the network they track, never an individual chain ID. Filtering candidate beacons by chain ID therefore rejects every real peer and leaves the node with an empty beacon set — which then degrades to the single-node path and the node names its own stale tip. Filter on network ID.
Frontier selection
- Query the configured bootstrap beacons (Invariant 1).
- Collect authenticated
BeaconReplys: reported accepted tip, height, block id, ancestry. - Find the highest block a supermajority of responders share — the exact tip
if they agree, otherwise the highest common ancestor. Producers are
legitimately ±1 block apart at the tip, so no single tip gets a
supermajority; a beacon at
N+1also vouches for its ancestorN, and the tally MUST be ancestor-tolerant for this reason. - Accept iff
BootstrapPolicyis satisfied —MinResponsesmet ANDAgreementThresholdof responders agree on that block or its ancestor — or an operator checkpoint authorizes it. - Sync down from the selected frontier (LP-0600 descent).
- After catch-up, re-enter consensus. Live acceptance is governed exclusively
by
ConsensusQuorum— strictly greater than ⅔ of current stake. The bootstrap policy never finalizes a block.
Acceptance criteria
| Scenario | Expected | |
|---|---|---|
| A | 5 equal validators; 3 configured beacons reachable; 2 down/stranded; the 3 reachable agree on the tip; MinResponses = 3 | frontier accepted, sync proceeds |
| B | 5 configured; 1 reachable reports a frontier | NoQuorum / insufficient responders |
| C | 5 configured; 2 reachable agree; MinResponses = 3 | NoQuorum — partition capture rejected |
| D | an attacker peer reports a higher forged tip; it is not in the configured/checkpointed beacon set | ignored |
| E | 3 honest configured report frontier A; 2 configured report forged frontier B | select A, or the common ancestor; never B |
| F | 3 reachable configured report different tips with common ancestor H; no quorum on tips, quorum on H | select H, not the highest isolated tip |
| G | after bootstrap, live block acceptance | still requires > ⅔ current validator stake; the bootstrap quorum cannot finalize blocks |
Each test is load-bearing: reverting the policy to the stake quorum reproduces the deadlock (A) or the capture (B, C).
Rationale — why this is safe
Bootstrap accepts a chain re-executed block by block (Verify) down to a
frontier that a supermajority of the configured beacon set vouches for. An
attacker cannot inject beacons, because the set is operator-configured rather
than arbitrary peers, so naming a forged frontier requires compromising a
supermajority of the configured beacons — the standard weak-subjectivity
assumption every proof-of-stake sync already makes. A Byzantine set below ⅓ of
configured names nothing (test E); a non-beacon names nothing (test D); a
partitioned tiny set names nothing (test C). Consensus finality is untouched:
once synced, the node finalizes only on > ⅔ of current stake (test G), which
remains fully dynamic as validators join and leave via the P-chain.
Security Considerations
- Weak subjectivity is explicit. Trust derives from the operator's
configured beacon set, or a pinned checkpoint — the standard proof-of-stake
sync anchor. Operators MUST keep bootstrap nodes pointed at honest, current
infrastructure; a pinned checkpoint is the recommended disaster-recovery
override when fewer than
MinResponsesbeacons are reachable. - No default to single-beacon trust.
MinResponses ≥ 2and anAgreementThresholdover responders are mandatory unless an explicit operator checkpoint is configured. - Finality safety is unchanged. This LP cannot weaken BFT finality. It
changes only the threshold a node uses to begin syncing, after which the
unchanged
> ⅔certificate-gated finality (LP-0125) governs all acceptance.
Reference implementation
| Concern | Location |
|---|---|
BootstrapPolicy, AcceptsFrontier, responder floor, ancestor-tolerant tally | luxfi/node chains/bootstrap_sync.go |
| Beacon resolution | luxfi/node chains/manager.go |
| Content-addressed descent (stake-agnostic, unchanged) | luxfi/consensus engine/chain/bootstrap |
Naming is the node's stake and trust concern; descent and execution are the consensus layer's stake-agnostic concern. The separation is deliberate.
Copyright
Copyright and related rights waived via CC0.