The clearing at midnight, where everyone agrees on the record
Chapter Four
The Validators’ Midnight Meeting
In which an owl turns up early, everybody votes and the clock keeps time
At midnight the validators met in a clearing lit by lanterns. Validators keep the ledger. They’re computers run by lots of independent operators, and each one checks every block and keeps a full copy of the record for itself. In this book they look a lot like owls.
Vera was in the chair. She was so punctual she had once turned up early to a meeting that had been cancelled, and she had a stamp, a ledger and strong opinions about lateness.
“The clock tells us the order,” said Vera. “Now we agree on the record. Votes, please.”
IV · The Validators’ Midnight Meeting
Stake, Votes and a Sensible Rule
Each owl had a pile of coins next to it. That pile was its stake. On Solana, SOL gets staked to validators by the people who run them and by anyone who delegates. Stake does two jobs. It decides how much a validator’s vote counts, and it’s the deposit that’s at risk if the validator is caught cheating.
The meeting runs like this. For each short stretch of time, called a slot, one scheduled validator is the leader. The leader gathers transactions into a block and uses the clock trail to show what order they came in. Everyone else checks the block and votes on it. Once validators holding two-thirds of the stake (a supermajority) have voted for it, the block counts as confirmed. As more blocks get built on top, it becomes finalized.
So the clock helps everyone agree on order and timing, and the stake-weighted votes are how they agree on the record itself.
IV · The Validators’ Midnight Meeting
Count the Votes
Vera handed out ballots. One of them already had reader written on it, and nobody could explain why. Each owl’s vote counted in proportion to its stake. The big owl with the tall pile of coins counted for a lot, the little owl with three coins counted for a bit, and the owl who’d fallen asleep didn’t count at all.
Try it. Tap the owls to cast their votes and watch the stake meter. The block is confirmed only once the owls who voted hold at least two-thirds of the stake between them. A crowd of small owls can matter as much as one big one. And if a third of the stake stays stubbornly asleep, nothing gets decided.
When the meter crossed the line, Vera stamped the ledger, very pleased with herself, and checked her pocket watch. “Four minutes early,” she said. “Excellent. Tomorrow, the workshop. I hear somebody there keeps grabbing the same jar as everyone else.”
Try it · Count the votes
Tap owls to wake them up and cast their votes.
Big Blue can’t do it alone. Put enough small owls together and they count as much as a big one.
