Chapter 04 · ~18 min
Simplex, live
Views, three kinds of votes, and a committee you can hurt.
What you’ll walk away with
- How a chain is built from an endless line of one-shot decisions called views
- The three votes —
notarize,nullify,finalize— and why the middle one is the elegant part - Why notarized is not finalized, why losing a proposal is routine, and why the worst a bad leader can do is waste its own turn
From one decision to a heartbeat
Chapter 2 taught you how a committee makes one decision safely: collect a quorum, trust the overlap. But a blockchain needs a decision every second or two, forever. So a consensus protocol is really an assembly line of one-shot decisions, and the unit of that line is the view: a numbered slot of time in which exactly one validator — the view’s leader — gets to propose one block, and everyone votes on it.
Who leads? In this guide’s committee it’s simply round-robin: view 0 is Theodora’s, view 1 is Basil’s, and so on around the table, forever. (Real networks pick their own rotation — some deliberately make it unpredictable; chapter 5 touches how.) No elections, no drama — the drama comes from what happens inside a view when its leader is slow, asleep, or lying.
And the protocol our committee runs is Simplex — a deliberately minimal BFT protocol (the name is the thesis). One view of Simplex is small enough to hold in your head, and that’s the point.
The three votes
Everything in Simplex is validators broadcasting three kinds of votes about views and blocks. The names below are the exact ones you’ll meet in our code, logs, and metrics:
notarize(v, b)— “this proposal is well-formed and I vouch for it.” A quorum of notarize votes for blockbin viewvforms a notarization: the block is a serious candidate, and the committee moves on to viewv + 1.nullify(v)— “this view is going nowhere; let’s move on.” Sent when a view times out (dead leader, unacceptable proposal, network too slow). A quorum forms a nullification: viewvis skipped, producing nothing, and the next leader builds on the newest notarized block instead.finalize(v, b)— “I notarizedband saw no reason to skip this view.” A quorum forms a finalization: blockb— and its entire ancestry — is final. Forever.
The happy path is just two vote rounds: the leader proposes, everyone notarizes, the
notarization appears, everyone finalizes — and here’s a nice touch — the finalize votes
for view v fly while view v + 1 is already running. Finality trails the tip of
the chain by a beat or two; the assembly line never stops to wait for it.
The elegant part is nullify. Older protocols handled a dead leader with escalating
timeouts and heavyweight “view change” ceremonies — failure was an exception. Simplex
makes it a first-class vote, symmetrical with progress: a dead view costs the chain
exactly one view’s worth of latency, and then the world moves on. Failure is boring by
design.
The machine, live
Time to see it. Below is a real four-validator committee — quorum 3, fault budget
f = 1 — running the actual vote logic over a simulated network (same deterministic
engine as the valley in chapter 2, same “reset replays the same fate” rule).
What you’re looking at: the top strip is the committee — a crown marks whose view
it is, and the dots flying between validators are votes, colored by kind (white
proposal, blue notarize, red nullify, green finalize). The panel below is the chain
being built, one column per view: blue-ringed N means notarized, green ✓ means
finalized, a red ∅ marks a nullified view, and the numbers along the bottom are view
numbers. The log underneath narrates everything in plain language. Buttons put
validators to sleep, cut the network, or corrupt Justinian.
Your missions, in order of escalating cruelty:
- Watch one happy view. Proposal out, blue votes back, green votes trailing while the next view already runs. Watch the “finality trails by” counter breathe.
- 💤 the current leader (whoever wears the crown). Count the cost: timeouts fire,
red nullify votes fly, the column gets a
∅, and the next leader carries on. One view lost, nothing broken. Wake them up — they backfill what they missed. - Sleep two validators. The budget is
f = 1; you’ve spent 2. Quorum is unreachable and the chain stalls — safely. Wake one and it resumes. That stall is the protocol choosing liveness-loss over safety-loss, exactly as promised in chapter 2. - ✂ split 2|2. No side has a quorum: total silence, both sides just nullify into the void. Heal it and watch the two halves reconcile. A partition can stop the chain; it cannot fork it.
- ✂ isolate Zoe. The other three keep a quorum, so the chain continues without her — while she times out alone in the dark. Heal, and watch the log: she spots she’s behind and backfills. Validators falling behind and catching up is routine plumbing, not an incident.
- Make the network genuinely bad: latency ~380ms, packet loss ~15%. (The view
timeout is 1200ms.) Views now fail with perfectly honest leaders — votes arrive too
late or not at all — and with some patience (or a 🎲 reroll) you’ll catch the rare
beauty: a block that earns its blue
Nand still gets grayed out and crossed off later, because a nullification formed too and the next leader routed around it. Notarized, then abandoned. Remember it for the next section. Then shove latency to the max and watch “finality trails by” climb: once a round trip no longer fits in the timeout, finalize votes stop qualifying entirely, so the notarized tip sails on while finality freezes. Dial it back down — one healthy view finalizes, and because finalization covers a block’s whole ancestry, the entire backlog snaps to final in one green sweep. - 😈 Corrupt Justinian. When his turn comes he proposes two different blocks to two halves of the room and withholds his votes. Usually the view just dies — and look at the log: the honest validators catch him (⚠ evidence), because his two signed proposals are mutually incriminating. His treachery costs the chain one view per turn, same as a nap. That equivalence is the whole design.
Notarized is not finalized
If you ran mission 6 long enough, you saw a block get notarized — a full quorum vouched for it! — and then die anyway. This is the single most important operational fact about Simplex, so let’s name what happened.
A notarization means “serious candidate,” not “decided.” If the view also times out on enough validators (votes arrived late; the network hiccuped), a nullification can form for the same view — both certificates legitimately exist. Now the next leader builds on the notarized block if it saw the notarization, or routes around it if it saw the nullification first. Candidates compete; short-lived branches appear; and the chain’s real history is settled only by finalization, which picks exactly one branch and kills the others. An abandoned notarized block is not a bug or an attack — it’s Tuesday.
Why can’t the abandoned branch also finalize — the fork you failed to build in
chapter 2? Because finalize(v, b) asserts “I notarized b and never voted nullify
in v”, while skipping view v requires a nullification — a quorum of validators
who did vote nullify in v. Two quorums, contradictory statements, and chapter 2’s
overlap argument does the rest: they must share an honest validator, and an honest
validator can’t have both timed out and not timed out. One branch finalizes; the other
is arithmetic roadkill.
For the rigor-minded: the safety argument, two sentences longer
Suppose block b at view v is finalized, and some conflicting chain finalizes too.
The conflicting chain doesn’t contain b, so it must pass view v without it — which
requires a nullification of v (a quorum of nullify(v) votes). But b’s
finalization is a quorum of validators asserting they never voted nullify(v). Two
quorums of 2f + 1 out of 3f + 1 overlap in at least f + 1 validators — at least
one honest — who would have had to both vote and not vote nullify(v). Contradiction;
safety holds. Note what did all the work: the wording of the finalize vote plus the
overlap arithmetic you already own.
One more consequence worth pinning: block identity is content, not circumstance. A block abandoned in view 9 can be re-proposed in view 10 by the next leader — most commonly when a leader crashed mid-view and its successor picks up the same work. Same content, same hash, different view, nobody blinks.
The failure unit
Zoom out from the mechanics and Simplex hands operators a beautifully small contract:
Whatever a faulty or malicious leader does, the designed worst case is “its leader turns are wasted.” Anything costlier — a halt with honest quorum available, a fork, ever — is not a tuning problem; it’s a bug.
You verified every clause of this with your own hands just now: crashed leader — one view. Byzantine leader — one view, plus a signed confession in the evidence log. Too few honest validators awake — a stall that heals. This is the lens for reading every operational symptom you’ll ever see on this system: views being skipped is the system working; the questions that matter are only “how often?” and “why?”.
And the mindset shift from single-sequencer thinking, stated once and bluntly: losing your proposal is routine. A sequencer that never shares the pen treats every hiccup as an incident. A committee member treats a lost turn as weather.
Views, heights, and epochs
Three counters tick at different speeds, and reading the system means not confusing them. Height counts blocks on the finalized chain. View counts attempts — nullified views burn view numbers without adding height, so view ≥ height, always. And the epoch counts eras: views are numbered within an epoch, the committee is fixed for its whole duration, and membership can change only at the boundary — which is also where, in our node, one consensus engine instance retires and the next one starts, with the boundary block re-proposed under new management as the handshake. Epochs are the door through which committee changes, and eventually on-chain registries, enter — ops material, chapter 8’s business.
Where this lives in our stack
- The five-minute protocol summary in the reference docs — docs/src/consensus/intro.md, “Simplex in five minutes” — is this chapter compressed; the vote names there are the ones on your screen above. The full chronology (genesis, every unhappy path, epoch turnover) is docs/src/consensus/lifecycle.md, and it will read like a walkthrough of things you just did.
- The widget above is a toy sibling of real machinery: the deterministic simulation harness in lib/consensus/sim/ runs the production consensus stack — real engine, real votes — under a seeded scheduler, with scenario tests for partitions, byzantine proposers, crash-restarts, and late joiners (lib/consensus/sim/tests/). Your mission list is, quite literally, a subset of CI.
- One real-world detail the toy hides: the production engine writes every vote to a disk journal before sending it. A validator that crashes and restarts replays the journal and cannot accidentally contradict its past votes — which is why waking validators in the widget say the journal line, and why crash-restart is not an equivocation risk. That thread continues in the signatures chapter.
The four things to keep
- A chain is views on an assembly line: one leader, one proposal, quorum votes — then the next view, regardless.
nullifymakes failure cheap and boring: a dead view costs one view, never an escalation.- Notarized ≠ finalized. Candidates compete and sometimes die; only finalization is forever, and the finalize-vote’s wording plus quorum overlap is why there’s no fork.
- The failure unit is the wasted leader turn. Skipped views are weather; forks are impossible; anything in between is a bug worth paging about.
Next: every certificate in this chapter was “a quorum of votes” — but what is a vote, concretely? A signature. And how do you hand a finalization to someone outside the room — a light client, another chain — so they can check it without trusting you? That’s the signatures chapter: BLS, aggregation, and certificates you can carry.