‹ CHAPTER 7, ALL LESSONS

PATHFINDER · CHAPTER 7 · LESSON 3 OF 5

Reading the whitepaper

Proof of work and the network

How can strangers agree on one history when anyone can lie? 6 min

One CPU, one vote

Publishing the timestamp chain on a single server would bring the middleman back. Section 4 instead asks every block to carry a proof of work: a number found by trying again and again until the hash of the block starts with enough zeros. Finding it costs real computing effort; checking it costs almost nothing.

Voting by IP address would let anyone with many addresses take over. Proof of work makes the vote cost something real: the paper calls it one CPU one vote. The majority decision is the chain with the most work in it.

The six steps of the network

  • New transactions are broadcast to all nodes.
  • Each node collects new transactions into a block.
  • Each node works on finding a proof of work for its block.
  • When a node finds one, it broadcasts the block to all nodes.
  • Nodes accept the block only if all its transactions are valid and not already spent.
  • Nodes show they accept it by building the next block on top of it.

In the paper, every node also mines. Today the roles are mostly separate: miners produce blocks, and many more nodes check them without mining. Step 5, checking everything, is still done by every node.

▶ SEE IT IN THE MACHINE

MINING is where the proof of work happens: the racks try hashes until one falls below the target.

What to remember

  • Proof of work is hard to find and easy to check.
  • The paper's vote is one CPU one vote, not one address one vote.
  • Every node checks every block before building on it.

Quick check

Why does the paper reject voting by IP address?

What does a node do when it accepts a new block, according to step 6?