What Is a Hard Fork?
A hard fork (or hardfork), as it relates to blockchain technology, is a radical change to a network's protocol that makes previously invalid blocks and transactions valid, or vice-versa. A hard fork requires all nodes or users to upgrade to the latest version of the protocol software.
- A hard fork is a radical change to the protocol of a blockchain network that makes previously invalid blocks/transactions valid (or vice-versa).
- A fork in a blockchain can occur in any crypto-technology platform, not only Bitcoin.
Understanding a Hard Fork
A hard fork is when nodes of the newest version of a blockchain no longer accept the newest version of the blockchain; which creates a permanent divergence from the previous version of the blockchain. Adding a new rule to the code essentially creates a fork in the blockchain: one path follows the new, upgraded blockchain, and the other path continues along the old path. Generally, after a short time, those on the old chain will realize that their version of the blockchain is outdated or irrelevant and quickly upgrade to the latest version.
Bitcoin Fork Explained
A fork in a blockchain can occur in any crypto-technology platform—Ethereum for example—not only Bitcoin. That is because blockchains and cryptocurrency work in basically the same way no matter which crypto platform they're on. You may think of the blocks in blockchains as cryptographic keys that move memory. Because the miners in a blockchain set the rules that move the memory in the network, these miners understand the new rules.
However, all of the miners need to agree about the new rules and about what comprises a valid block in the chain. So when you want to change those rules you need to "fork it"—like a fork in a road—to indicate that there's been a change in or a diversion to the protocol. The developers can then update all of the software to reflect the new rules.
It is through this forking process that various digital currencies with names similar to bitcoin have come to be: bitcoin cash, bitcoin gold, and others. For the casual cryptocurrency investor, it can be difficult to tell the difference between these cryptocurrencies and to map the various forks onto a timeline. To help sort this out, we have composed a history of the most important bitcoin hard forks of the past several years.
As the graphic below displays, nodes that are not upgraded reject the new rules, which creates a divergence, or hard fork, in the blockchain.
Reasons For a Hard Fork?
There are a number of reasons why developers may implement a hard fork, such as correcting important security risks found in older versions of the software, to add new functionality, or to reverse transactions—as when the Ethereum blockchain created a hard fork to reverse the hack on the Decentralized Autonomous Organization (DAO). After the hack, the Ethereum community almost unanimously voted in favor of a hard fork to roll back transactions that siphoned off tens of millions of dollars worth of digital currency by an anonymous hacker. The hard fork also helped DAO token holders get their ether (ETH) funds returned
The proposal for a hard fork did not exactly unwind the network’s transaction history. Rather, it relocated the funds tied to the DAO to a newly created smart contract with the single purpose of letting the original owners withdraw their funds. DAO token holders now can withdraw ETH at a rate of approximately 1 ETH to 100 DAO. The extra balance of tokens and any ether that remains as a result of the hard fork will be withdrawn and distributed by the DAO curators to provide "failsafe protection" for the organization.
Hard Forks vs. Soft Forks
Hard forks and soft forks are essentially the same in the sense that when a cryptocurrency platform's existing code is changed, an old version remains on the network while the new version is created. With a soft fork, only one blockchain will remain valid as users adopt the update. Whereas with a hard fork, both the old and new blockchains exist side by side, which means that the software must be updated to work by the new rules. Both forks create a split, but a hard fork creates two blockchains and a soft fork is meant to result in one.
Considering the differences in security between hard and soft forks, almost all users and developers call for a hard fork, even when a soft fork seems like it could do the job. Overhauling the blocks in a blockchain requires a tremendous amount of computing power, but the privacy gained from a hard fork makes more sense than using a soft fork.