Post
Topic
Board Development & Technical Discussion
Re: How exactly does hardfork work ? How can I study about it?
by
bob123
on 05/03/2018, 14:54:24 UTC
A fork normally happens when there’s a change in the consensus rule. When that happens you’ll see the chain split into two (imagine a Y).

The 'Y' is used for imagination. In reality there is no real split.
Each node stores its own copy of the blockchain. When a hard fork occurs there are basically 2 versions of the blockchain spread between nodes.
Both versions have the same data until block X. The representation with an 'Y' seems to be the most popular one. But from block X those are 2 completely independent networks.



Take bitcoin cash for example. They forked the chain by increasing the blocksize to 4mb. The nodes on the main chain won’t be able to validate that because they can only accept blocks up to 1mb.

They increased the blocksize to 8mb.



Litecoin is not a fork because they didn’t branch out of the main chain. They started all over.

It is not a fork in terms of 'blockchain forks', but bitcoins code on github got forked.

This is visible at the top left corner of LTC's github (https://github.com/litecoin-project/litecoin):