Ethereum Completes "Berlin Hard Fork", What Exactly Is a Hard Fork?

Ethereum Completes "Berlin Hard Fork", What Exactly Is a Hard Fork?

Following the “Muir Glacier” upgrade, Ethereum once again implemented the “Berlin” upgrade.

At about 6:12 pm on April 15 (Thursday), the Berlin hard fork was officially activated on the mainnet at block 12244000. In the past week, the average computing power of the Ethereum network was 502.37 TH/s, and the average block time was 13 seconds. Currently, 74.6% of the clients are ready.

The Berlin hard fork mainly optimizes the performance of Ethereum's main network and contracts, including gas efficiency, updates to the way the Ethereum Virtual Machine (EVM) reads code, and prevention of denial of service (DDOS) attacks. This upgrade will include four new EIP improvement proposals:

  1. EIP-2565: Change the Gas cost of modular/exponentiation operations. The EIP-2565 proposal is a repricing of the previous EIP-198 (modular exponentiation of large numbers); initially, EIP-198 introduced a precompiled module for modular exponentiation, which enabled us to introduce many cryptographic algorithms that require modular exponentiation, such as RSA signature verification. EIP-2565 reduces the Gas cost of this module to be on par with the cost of performing other operations.

  2. EIP-2718: Standardized transaction envelopes. This EIP introduces a new transaction type that can itself serve as an envelope to more conveniently enable support for multiple transaction types.

  3. EIP-2929: Increase the Gas cost of state access opcodes. This EIP increases the Gas consumption of a transaction when it first calls SLOAD, *CALL, BALANCE, EXT*, and SELFDESTRUCT.

  4. EIP-2930: Optional access list. The idea behind this proposal is to correct the destructive effects of EIP-2929 on existing contracts and alleviate the problem of increased gas consumption caused by EIP-2929.

What is a hard fork?

The "Muir Glacier" upgrade was just carried out in January, and the "Berlin" upgrade has begun again. What exactly are upgrades and hard forks?

Any system needs to be "upgraded", and the blockchain is no exception. In a centralized system, it is very simple to upgrade the software. You only need to upload the latest software to the development team and the users can download it. However, in a blockchain system, "upgrade" is not that simple. Because there is no centralized organization, every code upgrade of digital assets such as Bitcoin needs to be unanimously recognized by the community. If the community cannot reach a consensus, the blockchain is likely to form a "fork".

A fork is a permanent divergence in the blockchain. After the new consensus rules are released, non-upgraded nodes refuse to verify blocks produced by upgraded nodes. Although upgraded nodes can verify blocks produced by non-upgraded nodes, they will also act according to the new rules. Therefore, if everyone continues the chain they think is correct, there will be two chains.

The first fork of Ethereum was actually a solution to a hacker attack. In 2016, hackers used a code vulnerability to attack the crowdfunding project on Ethereum, The DAO, and continuously separated assets from The DAO's funding pool. In order to prevent investors' assets from being transferred, Ethereum directly chose a hard fork. After the fork, two chains were formed, one is the original chain (Ethereum Classic, ETC), and the other is the new forked chain (ETH), each representing a different community consensus and values.

Iterative upgrades and continuous improvement

Although the first hard fork was a last resort, Ethereum has been "long-planned" for subsequent hard forks. Rather than waiting for others to attack, it is better to take the initiative to fix the shortcomings. Since 2016, Ethereum has upgraded the entire system through hard forks many times. In 2019, the two upgrades called "Constantinople" and "Saint Petersburg" were both implemented in the form of "hard forks".

In December 2020, Ethereum underwent the Istanbul hard fork upgrade. Less than a month later, Ethereum underwent the "Muir upgrade"? With such a short interval, what exactly is the purpose of the upgrade?

The root cause is that the Ethereum difficulty bomb has been activated.

The "Ethereum difficulty bomb" refers to a part of the difficulty adjustment mechanism of the proof-of-work algorithm used by Ethereum. The original intention is to stabilize the network's block time by adjusting the mining difficulty of mining new blocks. If the block time is too short (shorter than 10 seconds) or too long (longer than 20 seconds), the mechanism will increase or decrease the mining difficulty accordingly.

The difficulty bomb adds a value to the mining difficulty that only increases with the block height and does not change with the block time. This value increases once every 100,000 blocks and never decreases.

At the beginning, the difficulty bomb increases the difficulty by a small amount, so it has no obvious effect on the block time; and the increase in this part of the difficulty is also very slow, but its growth is close to exponential growth. So at a certain time, it will suddenly increase the difficulty of the network and reduce the block speed.

In 2019, the difficulty bomb began to show its impact when the block height reached 8.6 million, and the average block time increased significantly; at the block height of 8.9 million, the block time increased to 14.3 seconds.

"By February 2020, block times could rise to 30 seconds. This would make the entire chain slow and difficult to use." This is the so-called "Ice Age."

One way to solve the ice age problem is to hard fork. Let’s take a look at the changes in Ethereum mining difficulty in recent years.

The graph shows that there were two times when the difficulty showed an obvious exponential growth and then fell sharply. This is because the difficulty bomb exploded after the Ethereum difficulty bomb was activated, which reduced the difficulty of mining blocks again. All of this was completed with the hard fork.

A separate hard fork upgrade was conducted to postpone the difficulty bomb, which is where the "Muir Glacier" hard fork came from.

Muir Glacier can delay the "difficulty bomb" by 4 million blocks. As time goes by, the difficulty bomb is not expected to "explode" again in the next few years. The upgrade is named "Muir Glacier" to commemorate geologist Muir, who was the first scholar to accurately propose the concept of glacial activity.

In any case, each hard fork upgrade represents an optimization and improvement of Ethereum. It is said that the "Berlin Upgrade" will trigger major changes in the functions of the Ethereum network. What do you think about this? Welcome to share with us in the comment section.

    <<:  Did you get the 5 key points of the Chia Network white paper?

    >>:  Bitcoin miners acquire New York power plant to quadruple mining power

    Recommend

    Palm lines diagram of men's left hand palm lines

    Everyone has unique palm lines, so what do these ...

    What kind of woman is likely to marry into a wealthy family?

    I believe that many women want to become wealthy ...

    The financial lines on your palm can tell your financial management ability

    It’s the end of the year, have the bonuses been d...

    Microsoft and KPMG launch blockchain innovation workshop

    Technology giant Microsoft and professional servi...

    Ingenesist (TIP) and Bitshares jointly plan a historic blockchain event

    We know that the BitShares community has always b...

    What does a mole on a woman’s ear mean? - Complete picture guide

    Having a mole on the ear also represents a certai...

    What does a heartless man look like?

    It is said that if a man does not work for himsel...

    How to analyze a woman's luck in marriage by looking at her face

    The situation of a woman's husband's fort...

    He has no opinion on what to do.

    Some opportunities are fleeting, so you must seiz...

    Can you tell a lustful man by his appearance?

    Can you tell a lustful man by his appearance? Phy...