Chapter 04 · The Bitcoin breakthrough

Reaching agreement without a leader

10 min
You are joining a course midway

This chapter builds on the ones before it. You can read it now, but it will not count towards your progress until the earlier chapters are done.

Block
# block 0001

Bitcoin uses roughly as much electricity as a country like Poland (electricity estimate: CCAF(opens in a new tab)). From far away, it sounds absurd. Up close, it's the exact opposite: it's the only known way for millions of strangers to agree on the same ledger, on an open network, with no leader and no trust required. This chapter explains why.

Picture a global network where nobody knows anyone, and nobody trusts anyone. And yet everyone has to agree on a single version of the ledger.

  • Who paid whom?
  • Which transaction is valid?
  • Which one is a fraud?

In a centralized system, the answer is easy: an authority decides. But here, there is no authority.

This coordination problem has a historical name: the Byzantine Generals Problem(opens in a new tab), formulated by Lamport in 1982. Bitcoin is its first solution deployed at scale on an open, permissionless network.

# block 0002
Double-spending
Nicolas
Transaction Asigned from Paris0.1 BTC
Christine L.
Transaction Bsigned from Tokyo0.1 BTC
Mrs. Smith
Same bitcoin, two recipients. Nicolas tries to spend it twice, from two different points on the globe.
Quiz

How do you settle a dispute between two competing transactions, with no central authority?

# block 0003

Let's look at exactly how Bitcoin solves this. We'll walk through three pieces, in order:

  1. The mempool
  2. How mining works
  3. How consensus emerges
# block 0004
# block 0005

This is where miners step in. Their job:

  1. pick transactions from the mempool
  2. bundle them into a block
  3. try to get the network to accept that block

But here's the catch: anyone can propose a block. So how do we decide who gets to write the next page?
The answer is simple, and a bit darwinian: the first to find the solution wins.

# block 0006

The first miner to find a valid hash broadcasts the block to the network. Other nodes verify it within seconds, and if everything checks out, the block is added to the ledger.

Remember the two competing transactions from earlier? If the miner picked one of them for the new block, the other becomes invalid: nodes drop it from their mempool over time.

Mempool
Pending transactions
MarcLea0.5 BTC
CarlosDiana0.12 BTC
NicolasSmith0.1 BTC
EricFatima0.03 BTC
NicolasChristine L.0.1 BTC
GraceHiro2.4 BTC
Nicolas is trying to spend the same BTC twice: once to Ms. Smith, once to Christine L.
Block #100828
Header & included transactions
prevHasha0bf53fc…943a1d
merkleRoot7f83b165…4c9b
nonce42817
MarcLea0.5 BTC
CarlosDiana0.12 BTC
NicolasSmith0.1 BTC
EricFatima0.03 BTC
# block 0007

And here's where you'll come at me: "What happens if two miners find a valid hash at the exact same time?"
Great question. A tricky case, and one that actually happens often.

# block 0008

Before wrapping up, one last piece: the difficulty target.

# block 0009

That's it. Proof of Work pulls off two feats at once: it makes conflicts economically ruinous, and it turns energy into trust.

But why would miners burn that much energy just to take part?
On to the next chapter: .

© 2026 - Bitcoin.Decoded

Doodle icons: Streamline (CC BY 4.0)