Hard Fork
A hard fork is a radical change to a blockchain protocol that makes previously invalid blocks/transactions valid, requiring all nodes to upgrade to the new version to remain compatible.
A hard fork is a fundamental and irreversible change to the consensus rules of a blockchain network. Unlike a soft fork, which is backward-compatible and allows older nodes to continue participating, a hard fork introduces changes that render previously valid blocks or transactions invalid under the new rules, or vice versa. This necessitates that all participants (nodes, miners, validators) upgrade their software to the new version to remain part of the same network. If a significant portion of the network does not upgrade, the blockchain can split into two separate chains: one following the old rules and one following the new rules. This contentious split can lead to the creation of a new cryptocurrency, as seen with the Ethereum/Ethereum Classic split following the DAO hack. Hard forks are typically implemented to introduce new features, fix critical security vulnerabilities, or reverse contentious transactions. The decision to implement a hard fork is usually made through a community consensus process, though disagreements can arise, leading to chain splits. The process requires careful coordination to ensure a smooth transition and minimize disruption.
graph LR
Center["Hard Fork"]:::main
Rel_soft_fork["soft-fork"]:::related -.-> Center
click Rel_soft_fork "/terms/soft-fork"
Rel_governance["governance"]:::related -.-> Center
click Rel_governance "/terms/governance"
Rel_51_percent_attack["51-percent-attack"]:::related -.-> Center
click Rel_51_percent_attack "/terms/51-percent-attack"
classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
linkStyle default stroke:#4b5563,stroke-width:2px;
🧠 Knowledge Check
🧒 Explain Like I'm 5
Imagine a group of friends playing a board game. Halfway through, they decide to change a major rule, like moving pieces backwards. If everyone agrees, the game continues. If some friends refuse and keep playing by the old rules, you now have two separate games running on two different tables. That's a hard fork.
🤓 Expert Deep Dive
Technical implementation of hard forks requires rigorous attention to 'replay protection' to prevent transactions on one chain from being valid on the other. Bitcoin Cash (BCH) implemented strong replay protection using the SIGHASH_FORKID flag. Following The DAO incident, Ethereum initially lacked replay protection, leading to confusion until EIP-155 introduced ChainIDs. Governance is the primary driver: Bitcoin uses BIPs (Bitcoin Improvement Proposals), where miner signaling (BIP-9) often precedes activation. Contentious hard forks create unique economic assets through 'airdropping' the new token to all existing holders on the legacy chain, creating significant market volatility and technical overhead for infrastructure providers.