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 of Bitcoin's consensus upgrades since 2010 have been hard forks; the community has consistently chosen soft forks. The "Bitcoin Cash" split in 2017 was a hard-fork 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.

Key takeaways

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

External references (3)

Related terms (13)