2 min to read.
Fork
A split in a blockchain's history or rules, or a new project created by copying an existing project's code.
What is a Fork?
In crypto, a fork is a point where a blockchain splits into two paths, or where its rules are changed. The word is also used in the ordinary software sense, for a new project that starts as a copy of another project's code. The meanings are related but worth keeping apart.
Types of fork
- Temporary forks. Two blocks are sometimes found at almost the same moment. Parts of the network briefly follow different blocks until one branch is extended, at which point all nodes converge on it. The discarded block is called a stale or orphan block. This is a normal event.
- Soft forks. A rule change that tightens the rules. Blocks made under the new rules are still valid for nodes running older software, so the network can upgrade without splitting, provided enough miners or validators enforce the change.
- Hard forks. A rule change that old software rejects. Every node has to upgrade. If part of the community keeps running the old rules, the chain splits permanently into two networks with a shared history.
- Code forks. Developers copy the source code of an open project and launch a separate network with a fresh ledger.
Example
In 2017 a group that wanted larger blocks changed Bitcoin's rules in a way the rest of the network did not accept. The result was a new chain, Bitcoin Cash, sharing Bitcoin's history up to the fork block. In the same year Bitcoin adopted SegWit through a soft fork, without a split.
Why it matters
Forks are how decentralised networks upgrade and how they settle disagreements when no central authority can decide. For users, a fork can require a software update.
Risks and misunderstandings
After a chain split, holders have balances on both chains. This is not free money: the two coins trade separately, and a transaction on one chain can sometimes be copied to the other (a replay) unless protection is built in. Scammers also use forks as a pretext to ask for private keys or seed phrases.