LearnBitcoin

Glossary

Fork

A change in blockchain rules - can be 'hard' (incompatible) or 'soft' (compatible with previous rules).

"Fork" in Bitcoin means a change to the consensus rules. There are two distinct types, and the difference matters a lot.

Soft fork. Tightens the rules. Blocks that were valid under old rules become invalid under new rules; blocks valid under new rules remain valid under old rules. Old nodes that haven't upgraded still see new blocks as legitimate, they just don't enforce the new constraints themselves. Backwards-compatible. Bitcoin's standard way of upgrading.

Examples: SegWit (2017), Taproot (2021), BIP-65 CLTV, BIP-68 CSV, P2SH, and others.

Hard fork. Loosens or otherwise breaks the rules. Blocks valid under new rules may be invalid under old rules. Old nodes reject new blocks. Not backwards-compatible. Creates a permanent chain split unless every node upgrades.

Examples in Bitcoin's history: none that are undisputed. The upgrades listed above, from P2SH to Taproot in 2021, were all soft forks. The disputed episode is 2013: in March a database limit in older versions split the chain by mistake, the temporary rule that patched over it was then allowed to lapse, and in August a block left unpatched nodes behind for good. Whether any of that counts as a hard fork is still argued by the developers who were there; the chapter linked below takes it up. The "Bitcoin Cash" split of August 2017 was a hard fork by its own specification, a rebrand-as-altcoin rather than an upgrade of Bitcoin itself.

The asymmetry between soft and hard forks is one of Bitcoin's quieter conservative defenses. Soft forks can ship gradually with no disruption if they have broad support. Hard forks are essentially impossible to deploy on Bitcoin without splitting the network - so changes that require a hard fork (e.g., changing the 21M cap) are practically infeasible.

The term "fork" is also sometimes confusingly used for temporary divergences (two miners finding blocks at the same height), but those are better called brief reorgs - the network resolves them within a block or two.

For an accidental fork followed minute by minute, see The 2013 Chain Fork.

Key takeaways

  • Hard forks risk creating permanent alternate chains
  • Soft forks remain compatible with older clients
  • Consensus is crucial to avoid chain splits

Sources (6)

External references (3)

Related terms (13)

Published . Revised . No corrections logged for this page.

Edit this page on GitHub