Level 1 · Start hereThe village#051

What is a fork? When the village can't agree, the notebook splits

A fork is when a blockchain's history splits into two versions. Most forks heal within minutes. A soft fork tightens the rules and keeps one chain; a hard fork changes them so old software can't follow, and can leave two coins where there was one.

One evening, some houses in the village decide the pages of the notebook are too small. From tomorrow, they say, we'll write on bigger pages. The other houses refuse. A big page breaks the rules they signed up to, so they won't copy it.

Next morning there are two notebooks. They agree on every line up to the night before. After that, each side writes its own pages and ignores the other's.

That's a fork. Sometimes it's an accident that heals in minutes. Sometimes it's a rule change that everyone follows. And sometimes, like here, it's a permanent split, and the village wakes up with two currencies.

What it is

A fork is any moment when a blockchain has two competing versions of its history. There are three kinds.

  • Accidental forks. Two miners find a block at almost the same moment. For a short while, nodes disagree about which came first. The Bitcoin developer guide says nodes "always follow the most difficult chain to recreate and throw away stale blocks belonging to shorter forks" (Bitcoin developer guide). Usually the next block decides it.
  • Soft forks. The rules get stricter. New software rejects some blocks that old software would accept, but everything the new software writes still looks valid to the old. If most of the writing power upgrades, there is still one chain.
  • Hard forks. The rules change so that old software rejects the new blocks. If not everyone upgrades, the guide says this "creates permanently divergent chains", one for the old rules and one for the new.

How it works: two forks in one month

August 2017 had both kinds, a few weeks apart.

  1. The plan. On 24 July 2017, the developers of a program called Bitcoin ABC published a specification for a hard fork. From 1 August 2017, 12:20 UTC, their software would accept blocks bigger than the old limit of 1,000,000 bytes, and the first block of the new chain had to be bigger than that. In their words, this "enforces the hard fork from the original 1MB chain" (Bitcoin ABC, 2017).
  2. The last shared page. Block 478,558 was mined on 1 August 2017 at 13:16:14 UTC. Bitcoin explorers and Bitcoin Cash explorers show the same block with the same fingerprint, 0000000000000000011865af...2d43 (mempool.space, Blockchain.com).
  3. Bitcoin's next page. Block 478,559 on Bitcoin came at 13:23:00 UTC: 272,502 bytes, 472 transactions (Blockchain.com).
  4. The other next page. Block 478,559 on Bitcoin Cash came at 18:12:41 UTC: 1,915,175 bytes, 6,985 transactions (Blockchain.com). Almost twice the old limit. Every node on the old rules threw it out. From that page on, there were two notebooks.
  5. The soft fork. On 24 August 2017, at 01:57:37 UTC, Bitcoin's segwit rules took effect at block 481,824 (Bitcoin Core, mempool.space). Its rules were written so that old software still accepted the new blocks (BIP 141). One notebook went in, one came out.

Same month, same network, two very different results. One change split the village. The other changed the rules and the village barely noticed.

We cover how a soft fork gets agreed, using the Taproot upgrade of 2021, in "Who controls crypto? Nobody holds the pen, but six groups hold the ink". The most famous hard fork, Ethereum's in 2016 that left Ethereum Classic behind, is in "Vitalik Buterin and the birth of Ethereum".

Why it matters

  • Your coins can double, on paper. Whoever held bitcoin at block 478,558 held the same amount on both chains afterwards, because both kept the shared history. Whether the second coin was worth anything was up to the market.
  • Names become a fight. After a split, each side says it's the real one. Exchanges decide what to list and under which ticker.
  • Disagreement has an exit. On a public blockchain, nobody can force you to accept new rules. You can stay on the old chain. That's freedom, and also how one village becomes two smaller ones.

Where people get it wrong

  • "Every fork creates a new coin." Most forks are accidental and last one block. Soft forks keep one chain.
  • "A hard fork is an attack." It's a rule change that old software can't follow. Whether it splits the chain depends on who refuses to upgrade.
  • "A fork copies the code, so it's the same as a new coin." Copying the code and starting from block 0 isn't a fork of the chain. A chain fork keeps the shared history.
  • "Free coins from a fork are free money." Claiming them means using your keys in new software. That's exactly where scammers set up fake "claim" wallets.

Before you claim your fork coins

If a chain you hold ever splits, wait. Read what the developers of both sides publish, and check on an explorer that the new chain exists and has blocks. Never type your seed phrase into a wallet you found through a link.

The stranger at the gate will have a "fork claim tool" ready within the hour. That's the fastest software in crypto.

Frequently asked questions

What is a fork in crypto?

A fork is when a blockchain's history splits into two versions. It can be a short accident between two blocks found at once, a soft fork that tightens the rules, or a hard fork that changes them so old software can't follow.

What is the difference between a soft fork and a hard fork?

A soft fork makes the rules stricter, so blocks made under the new rules are still valid for old software and the chain stays as one. A hard fork changes the rules so old software rejects new blocks, which splits the chain if not everyone upgrades.

When did Bitcoin Cash split from Bitcoin?

On 1 August 2017. Both chains share every block up to 478,558, mined at 13:16:14 UTC. The first Bitcoin Cash-only block, 478,559, was 1,915,175 bytes, too big for the old rules, so Bitcoin nodes rejected it.

Do I get new coins in a hard fork?

If a chain splits, the balances in the shared history exist on both chains. Whether the new coins are worth anything, and whether exchanges support them, is a separate question.

Was segwit a hard fork?

No. Segwit was a soft fork that took effect at Bitcoin block 481,824 on 24 August 2017. Old software kept accepting the new blocks, so the chain didn't split.

Sources

  1. Bitcoin developer guide, Block chain (forks, soft forks and hard forks)
  2. Bitcoin ABC, UAHF technical specification, version 1.6 (24 July 2017)
  3. mempool.space API, bitcoin block 478,558
  4. Blockchain.com explorer, Bitcoin Cash block 478,558
  5. Blockchain.com explorer, Bitcoin Cash block 478,559
  6. Blockchain.com explorer, bitcoin block 478,559
  7. Bitcoin Core, chainparams.cpp (SegwitHeight)
  8. mempool.space API, bitcoin block 481,824
  9. BIP 141, Segregated Witness

Read next.