What is a Fork? – Beginner’s Guide to ‘Forking’ on the Blockchain

Beginner’s Guide / 24.12.2019

Fork! The name itself sounds kinky. But, it is what it is. The word Fork, in technology lingo, is used to describe anything that is diverging or cutting off from an already existing piece of software or code. But gradually, the definition has gone on to become much broader that it was initially used for.

To Fork, means to change, to differ, or to diverge from something that already exists, either to upgrade and leave the old stuff behind, or to start something entirely new based on the previously existing rules.

When it comes to ‘forking’ on the Blockchain, the word usually retains most of its meaning, but has gone on to split into two parts (doing exactly what it means).

In this piece, we will be looking at what a “FORK” is, what are its properties, its types and eventually move on to the several occurrences within the Blockchain sector where ‘Forking’ has gone on to create much havoc and innovation, sometimes even both at the same time.

‘Forking’ on the Blockchain

Forking on the Blockchain is the process of changing the already existing rules and moving towards a new set of pre-specified rules. The rules that are put forward can either be supported by all, some or none of the participants of the network. Forks are set of rules that have to be recognized by the nodes running on any given network. If the node decides not to consider the changes in rules, it can do so, but that decision will have several consequences.

In the short span that it has been circulating, the word Fork has gone on to bring much upheaval in the market. A Fork has been used to describe any and all types of differences in opinion, communication or any other form of divergence. Slowly, but steadily, the word Fork has evolved into several types, each further divided into more classifications.

In General, Forks can be considered of two types, Soft Fork and Hard Fork.

Different Types of Forks

Soft Fork

Basic Properties:

  • Backwards Compatible
  • Does not require consensus
  • Can be reverted or ignored

A soft fork is any change to a blockchain protocol that stops the rule-set enforced by full nodes that update to enforce the soft fork rules. In other words, soft fork means that if a new set of rules are introduced that need not gain majority, they can or cannot be applied by all the nodes. A block that is considered valid before the soft fork activates, will be considered valid by other even after that new rules are brought forward.

A Soft Fork is usually backwards compatible. For instance, if an old node decides to make and verify a block, it will be considered valid by all other nodes on the network, new or old.

Hard Fork

Basic Properties:

  • Non-backwards Compatible
  • Requires Consensus
  • Cannot be reverted

A hard fork is a non-backwards compatible upgrade to an existing blockchain. This means that all the network nodes on a particular blockchain must either comply with the fork and update their protocol software, or continue with the same outdated protocol, by forming another separate Blockchain entity. Some of the most famous hard forks are the Bitcoin vs. Bitcoin Cash hard forks, Ethereum vs. Ethereum Classic hard fork, the Ethereum Istanbul Hard Fork, etc.

A Hard Fork is called a Non-backwards compatible fork because any and all changes made using nodes that run on the old set of rules will be considered as invalid. In simple words, if an old node decides to make and verify a block, it will not be considered valid. All changes made during a hard fork cannot be changed or deleted after the fork has been completed.

Hard Forks can further be divided into two types

  • Contentious Hard Fork: A contentious hard fork is a type of Hard fork that is non-reversible and non-backwards compatible. It usually happens when there is a disagreement within the community. The faction that disagrees goes on to fork the chain and implement the changes they want on their new chain. Contentious Hard Forks usually result in a Chain Split.
  • Non-Contentious Hard Fork: A non-contentious hard fork is also a type of Hard fork that is non-reversible and non-backwards compatible. The difference being that a non-contentious hard fork is carried out to upgrade the protocol and contains consensus from all the nodes in the network.

Well Known Forks in the Blockchain Ecosystem

BTC/BCH Hard Fork – Contentious Hard Fork

Bitcoin cash is a cryptocurrency created in August 2017, from a fork of Bitcoin. Bitcoin Cash increases the size of blocks, allowing more transactions to be processed.

Bitcoin cash was started by bitcoin miners and developers equally concerned with the future of the cryptocurrency and its ability to scale effectively. The key difference between BTC and BCH is the block size. The Bitcoin block size is limited to 1 MB, while Bitcoin Cash offers a block size of 8 MB, which was later upgraded to 32 MB.

Ethereum/Ethereum Classic Hard Fork – Contentious Hard Fork

Under the umbrella of the Ethereum Organization, the Decentralized Autonomous Organization (aka the DAO) was initiated and built to act as a decentralized venture capital fund for decentralized crypto projects. The idea was to make a stateless decentralized organization with no board of directors or employees, but instead would use independent investors as its key actors. Within 28 days of its formation, it accumulated over $150 million worth of ether in a crowd-sale.

Shortly after that, a flaw in DAO’s code was exploited by attackers and more than $50 million was drained out of DAO’s funds.

This led to an upheaval in the crypto space, among DAO investors, and particularly among members of the Ethereum community. This upheaval was mainly because a lot of investors’ money was drained out, leaving some to presume that Ethereum blockchain itself was hacked and the project had failed.

Post the mayhem, a majority of Ethereum’s community decided in favor of a “hard fork” to restore the investor’s financial losses and the ruined reputation. While a vast majority of the Ethereum’s community was in agreement of the fork, a small group wasn’t – thus holding on to the notion of ‘Code Is Law‘ and continuing on the old blockchain, forming “Ethereum Classic” by hard forking the Ethereum Blockchain.

Ethereum’s Istanbul Hard Fork – Non-Contentious Hard Fork

The 8th Ethereum hard fork was initiated on December 6th, 2019. This initiation of the Ethereum Network was called “network upgrade” by the community. It was the 8th such iteration of the network, following other previous updates such as Metropolis, Constantinople and so on. This network update is considered as a Hard Fork because all existing rules before the hard fork have become invalid. All new nodes must follow the new set of rules. The fork wasn’t contented, meaning that no one came up to say that they were unhappy with the fork. And so, this resulted in no chain split.

SegWit – Soft Fork

SegWit was the proposed soft fork on the Bitcoin blockchain. It was the process by which the block size limit on a blockchain is increased by removing signature data from Bitcoin transactions. When certain parts of a transaction are removed, this frees up space or capacity to add more transactions to the chain. The SegWit fork was considered as a Soft fork because none of the users were mandated to use update to the new set of rules. Nodes were given the choice of choosing to stay or upgrade their protocol. If the nodes were later unhappy with the new rules, they can turn back and use their old set again.

avatar
Sudarshan M is a long time crypto-enthusiast. Pulled in by bitcoin early on, it did not take long for Sudarshan to divert all of his academic attention from business studies to blockchain by doing his Masters and eventually pursuing his PhD in the subject.