specborn documentation contents ↓

Time-jump gate #

The phase0 honest-validator guide (protection best practice 4b) asks a client to refuse, by default, "any message that has a large (>6h) gap from the current slashing protection database", and lets the operator override it. The point is to catch a wrong clock or a long offline period before the client signs far ahead of its own history.

What specborn checks #

Before signing a duty message for a key, the signer (Specborn/Validator/Duties/Signer.lean, isTimeJump in gates) takes the newest epoch in that key's slashing-protection history: its newest attestation target, the epoch of its newest block slot, and the low watermarks an interchange import set. If the message's epoch is more than 6 hours of slots after that epoch, the message is refused (timeJump) and nothing is signed. A key with an empty history (just registered) is never refused by this gate.

It applies to every duty message (attestations, selection proofs, aggregates, sync-committee messages and contributions, PTC votes) and to block proposals (below).

PROVED: a duty signature is made only if the gate passed or was overridden (Proofs/Validator/Duties/Signer.lean, gates_ok). TESTED: suite vduty, stage signer (a message 6 hours after the newest record is refused; with the override it is signed; Tests/Vduty/Signer.lean).

After a long outage #

If the node was stopped for more than 6 hours, every key with a history is refused at its first duty after the restart's doppelganger window (the signer checks doppelganger protection before the time jump, Specborn/Validator/Duties/Signer.lean lines 183-184, so during the window the refusals say doppelganger), and stays refused: a refused message writes nothing, so the newest epoch does not move. Each refusal is a duties: slot … line ending in refused: …timeJump, and the epoch summary counts it (duties: epoch … N refused …). The docs/pieces/vduty.md record (O-vduty-5) describes the intended use:

  1. make sure the system clock is right and that no other client signs with these keys;
  2. restart once with --allow-time-jump;
  3. after the first new attestation of each key has been signed (the history then has a recent epoch), restart without the flag.

--allow-time-jump needs --validator-keys (exit 2 otherwise). It turns the gate off for the whole run, for duties and proposals; leaving it on removes this protection.

Block proposals #

Lead decision D-34 (PROOF_LEDGER.md, rows D-34 and D-32; piece record docs/pieces/tjgate.md) applies the same gate to the proposers. Before the first signature of a proposal, the RANDAO reveal, the Fulu and Gloas proposers read the key's history from the slashing-protection database and run the duty signer's own check (isTimeJump at the slot's epoch, honouring --allow-time-jump; proposeGated in Specborn/Validator/Propose/Core.lean (line 494) and Specborn/Validator/ProposeGloas/Core.lean (line 675)). A refused slot signs nothing (no RANDAO reveal, no block, no Gloas envelope), is not retried, and is logged:

propose: slot S validator V: refused: time jump: the key's newest signed epoch L is more than 6 h before epoch E; refused before any signature (--allow-time-jump overrides)

(propose(gloas): … on Gloas.) The slashing-protection database itself has no time-jump check: blocks are covered because the gate runs before the RANDAO reveal.