Fork
A divergence in chain history or rules, either temporary (two blocks found at the same height) or permanent (a rule change).
Basically
A fork changes the rules of a blockchain. It can split the record of transactions temporarily or permanently.
Key Takeaways
- A fork creates two possible paths when two miners find blocks at nearly the same time or when protocol rules change. Decentralised networks use forks to upgrade and resolve disagreements.
- A hard fork breaks backward compatibility and can create two separate cryptocurrencies. A soft fork tightens the rules while remaining backward compatible, so the network stays unified.
- Forks provide the ultimate governance mechanism in decentralised systems. Any group can fork the chain and pursue a different vision when the community cannot reach consensus.
What Is a Fork?
A fork is a divergence in a blockchain's transaction history, where the chain splits into two or more branches. The term borrows from open-source software development, where "forking" means copying a codebase and developing it independently. A blockchain fork produces two versions of the ledger that share a common ancestor block but follow different rules or contain different transactions going forward.
Forks can be accidental, a natural byproduct of distributed block production, or intentional, a deliberate change to protocol rules. These events range from momentary forks that resolve in minutes to permanent chain splits that create entirely new cryptocurrencies. You need to understand forks if you hold assets, build on a blockchain network, or operate its infrastructure.
How It Works
A set of consensus rules determines which blocks and transactions are valid on every blockchain. Participants who agree on the same rules and the same chain history maintain a single canonical chain. A fork happens when this agreement breaks, whether by accident or by design.
Accidental Forks
Two or more miners can solve the proof-of-work puzzle and broadcast valid blocks at nearly the same time, causing an accidental fork. Different nodes on the network receive different blocks first and temporarily follow different chain tips. Bitcoin experiences this roughly every 60 blocks.
The longest chain rule, more precisely the chain with the most cumulative proof-of-work, resolves these temporary forks naturally. The branch that receives the next block first becomes the canonical chain, the competing block becomes a stale block, and transactions from the abandoned block return to the mempool for inclusion in a future block. No funds are lost.
Intentional Forks: Hard vs. Soft
Intentional forks are deliberate changes to a blockchain's consensus rules. They come in two forms:
A hard fork changes the consensus rules so that blocks valid under the new rules are invalid under the old rules. Non-upgraded nodes reject the new blocks and continue following the old chain. If both chains retain miners and users, two permanent blockchains result.
A soft fork tightens existing rules: blocks valid under the new rules are still valid under the old rules, but not vice versa. Non-upgraded nodes continue to accept new blocks without knowing the rules have changed. This makes soft forks less disruptive but limits the scope of changes they can introduce.
The Fork Choice Rule
Competing branches require nodes to decide which chain is canonical. The algorithm that makes this choice is called the fork choice rule. Bitcoin uses the heaviest chain rule, selecting the chain with the most cumulative proof-of-work, while Ethereum (post-Merge) uses LMD-GHOST combined with Casper FFG, following the subtree with the most validator attestation weight.
Bitcoin Cash: Contentious Hard Fork
Bitcoin Cash (BCH) split from Bitcoin on August 1, 2017, at block height 478,558 after a disagreement about scaling. Bitcoin Cash increased the block size limit from 1 MB to 8 MB, later raised to 32 MB. Bitcoin pursued scaling through SegWit and Layer 2 solutions like the Lightning Network.
Every Bitcoin holder at block 478,558 received an equivalent amount of BCH controlled by the same private keys. The "free coins" effect became a defining feature of contentious hard forks, though the combined value of both assets often remained close to the original's pre-fork price.
SegWit: Backward-Compatible Soft Fork
Segregated Witness activated on Bitcoin at block 481,824 on August 24, 2017. BIP 141 defined SegWit, which moved signature (witness) data outside the base block and effectively increased capacity without changing the block size limit. Non-upgraded nodes continued operating normally because SegWit only tightened rules by treating new transaction formats as valid within existing constraints.
SegWit's activation path was notably complex and involved BIP 9 miner signalling, BIP 91, a lowered threshold compromise, and the threat of BIP 148. BIP 148 was a user-activated soft fork where node operators would enforce new rules regardless of miner signalling. Bitcoin governance therefore involves a balance among miners, developers, and node operators, and the soft fork activation history research article provides a deeper history.
Ethereum Classic: The DAO Fork
An attacker exploited a reentrancy vulnerability in The DAO smart contract on June 17, 2016, draining approximately 3.6 million ETH, around $60 million at the time. The Ethereum community executed a hard fork on July 20, 2016, at block 1,920,000, reversing the theft by moving funds from the attacker's contract into a recovery contract.
People who rejected this intervention on the grounds that blockchains should be immutable continued the original, unaltered chain as Ethereum Classic (ETC). The fork crystallised a fundamental debate: should a blockchain community intervene to undo theft, even when doing so violates the principle of immutability?
How Forks Affect Token Holders
A permanent chain split from a hard fork duplicates the entire UTXO set, or account state. Holders of the original asset end up with equivalent balances on both chains, controlled by the same private keys. These balances have several practical implications.
Governance Implications
Forks serve as the ultimate governance mechanism in decentralised systems with no central authority. They provide an exit right: when a community cannot agree, any group can fork the chain and pursue a different direction. This exit right preserves the voluntary nature of participation that distinguishes blockchains from centralised systems.
The Bitcoin scaling debate of 2015 to 2017 illustrated the power dynamics at play. A majority of miners and dozens of companies backed the SegWit2x proposal, the "New York Agreement", yet it was cancelled on November 8, 2017, because it lacked broader community consensus and full node operator support. The outcome demonstrated that no single constituency, whether miners, companies, or developers, can unilaterally change Bitcoin's rules.
The high coordination costs of forks act as a natural check against frivolous changes because exchanges must add support, wallets must update, and users must choose sides. This friction is a feature because it ensures that only changes with broad support actually happen on the canonical chain.
Forks and Layer 2 Solutions
Forks primarily affect the base layer, Layer 1, but they have significant implications for Layer 2 protocols built on top. Lightning Network channels, for example, rely on the base chain for settlement. A contentious hard fork that splits the base chain could force Layer 2 operators to choose which chain to support or maintain infrastructure on both.
Layer 2 solutions like Spark reduce the need for contentious base layer changes by moving transaction throughput off-chain. These protocols can evolve without requiring the base chain to fork by handling payments and state transitions at a higher layer.
Network Fragmentation
Contentious forks split not just the chain but the community: developers, miners, users, and economic activity. Both resulting chains may end up weaker than the original. The Bitcoin/Bitcoin Cash split fragmented development resources and community attention for years.
Replay Attacks
A lack of proper anti-replay protection can allow transactions on one fork to be replayed on the other, potentially causing unintended fund transfers. You must exercise caution when transacting on newly forked chains, especially before replay protection is confirmed.
Security Reduction
A proof-of-work fork that splits the mining hashrate leaves both chains more vulnerable to 51% attacks. The minority chain faces the greatest risk because it retains less computational security. Ethereum Classic suffered multiple 51% attacks in 2019 and 2020, partially attributable to its lower hashrate relative to Ethereum.
Ecosystem Disruption
Forks impose costs on the entire ecosystem. Exchanges must decide whether to list the new asset, wallet providers must add chain support, and smart contract developers may need to redeploy. Payment processors must handle potential confusion between assets sharing similar names and addresses.
The glossary entry is for informational purposes only and does not constitute financial or investment advice. You should always do your own research before using any protocol or technology.