What is blockchain fork? I finally understand

What is blockchain fork? I finally understand

I have previously written about how Bitcoin mining works. The proof-of-work mechanism used by Bitcoin is to let miners compete with each other to solve a math problem. Whoever solves it first shouts, "My proof-of-work is successful, come and see." All miners come over to copy that page, paste it on the top of their own ledger, and then start a new accounting process.

In this process, there is often a situation where two miners solve the problem at the same time. What should we do?

[[211130]]

The previous article also said: "In any block, the first entry has no transfer address, which is the so-called CoinBase (mining transaction). No one pays the miner this money, the miner just writes that he has received 12.5 bitcoins. All nodes recognize the miner's writing, so the miner gets the mining income. When different miners fill in the block, the data must be different, because each miner's first entry must be different, and the miner will only transfer the mining income to his own address."

Since each miner has different block data, the results they get from solving the problem are also different. They are all correct answers, but the blocks are different. Therefore, at this moment, two different blocks that meet the requirements appear in the blockchain. So, what should all miners do at this time?

Due to the distance, different miners see these two blocks in order. Usually, miners will copy the block they saw first, and then start new mining work on this block. So, the following situation occurs:

We call this phenomenon a bifurcation.

In a blockchain system that uses the proof-of-work mechanism as a consensus algorithm, this problem is solved in this way: starting from the forked block, since different miners follow different blocks, the computing power on the two forked chains is different. Figuratively speaking, the number of miners following the two chains is different.

Since the problem-solving ability is proportional to the number of miners, the growth rates of the two chains are also different. After a period of time, one chain will always be longer than the other. When a miner finds that there is a longer chain in the entire network, he will abandon his current chain, copy the new longer chain back, and continue mining on the basis of this chain. When all miners do this, this chain becomes the main chain, and the forked and abandoned chain disappears.

In the end, only one chain will be retained and become a truly valid ledger, and the others are invalid, so the entire blockchain remains unique.

Note that the premise for blockchain to ensure data uniqueness is that all miners follow the same mechanism.

There is another situation where miners do not follow the same mechanism, which will also cause a fork. There are two situations for this kind of fork: one is that due to the upgrade of the entire blockchain system software, some miners did not have time to upgrade, resulting in a fork that follows different mechanisms.

When these miners upgrade the system, the fork will disappear. We call this fork a soft fork. Second, due to disagreements among miners, some miners decide to adopt different mechanisms, and the resulting fork will not disappear. We generally call this fork a hard fork.

Soft forks are easy to understand, so let’s focus on hard forks.

The first influential hard fork in the blockchain circle should be the fork of Ethereum. Due to its own loopholes, The DAO, a famous project on Ethereum, caused hackers to steal about 60 million US dollars worth of Ethereum at the time. In July 2016, the Ethereum development team modified the code of the Ethereum software and forcibly transferred all funds of The DAO and its sub-DAOs to a specific refund contract address in the 1920,000th block, thereby "taking back" the DAO contract currency controlled by the hacker.

Since some miners disagreed with this modification, two chains were formed, one for Ethereum (ETH) and the other for Ethereum Classic (ETC), each representing different community consensus and values. After the hard fork of Ethereum, two blockchains were generated. Since the data of the two chains were the same before the fork, a very interesting phenomenon occurred: people who originally held Ethereum (ETH) found that in addition to holding the original ETH, they also had the same amount of ETC.

In other words, some assets are added out of thin air. The specific value of these assets depends on the market trading situation. But in general, the hard fork of the blockchain does not reduce assets, but instead gives people an extra asset in their hands. It seems that it is always a good thing, so the blockchain fork has become a way to increase assets out of thin air.

On August 1, 2017, a group of miners led by ViaBTC created a Bitcoin fork - Bitcoin Cash (BCC or BCH for short). This fork allowed a large number of Bitcoin holders to add a new digital currency (BCH) out of thin air.

The hard fork is a very similar way of creating currency to ICO, so a new term was born - IFO (Initial Fork Offerings). When creating a fork, the miner team can use their privileges to allocate some currency to themselves or others in the block where the fork occurs (just write it as a CoinBase transaction), and then open it up to everyone to participate in mining.

As more and more hard forks occur, can the credibility of Bitcoin remain the same as before? Will IFO become the killer of Bitcoin? It will take time to test.

<<:  The time is approaching! my country will have 5G commercial networks as early as the second half of 2018

>>:  China Broadband Truth Investigation (Part 2): Why Internet speed is always different from what is advertised?

Blog    

Recommend

BGPTO Singapore $49/month dedicated server simple test

A few days ago, the blog shared the information t...

The love-hate relationship between Bluetooth 5 and WiFi

It can be said that Bluetooth and Wi-Fi each have...

Inventory of common Ul Ol lists and common list marker icons in HTML

[[402167]] 1. Concept The CSS list properties are...

Opportunity or chicken ribs? eMTC should not follow the NB-IoT price war

[[255921]] Recently, the official website of the ...

The impact of blockchain technology on the future world and data centers

As organizations gain a deeper understanding of t...

Beware of walls! Can Wi-Fi become a paparazzi and also a holographic image?

In the wilderness, two nimble figures move left a...

Master port isolation technology to make the network more secure

Currently, Ethernet technology is widely used in ...

What factors determine the price of HTTPS certificates?

In the era of big data, when information is trans...

Talk: How to explain 3PC to your girlfriend?

After a pleasant hotpot meal, I went home leisure...

The difference between SDN and traditional network operation and maintenance

1. Pain points of traditional network operation a...

It's no big deal for the three major operators to withdraw from the US

After several twists and turns, China's three...

Resize the file system in Linux: resize2fs

resize2fs is a command used to expand or shrink t...