Ethereum’s Upgrades: Why Constantinople Fork Is So ‘Hard’ to Implement

Published at: Oct. 25, 2018

More than a year ago software developer and member of the Ethereum Foundation, Hudson Jameson, announced plans to launch Metropolis, the third stage on the way to moving the platform to Proof-of-Stake (PoS). All this time, the developers have been keeping secret the date of its final phase, called Constantinople, which is to be held in the form of a hard fork on the network.

On September 14, during one of the team’s bi-weekly video calls, it finally became known that the planned hard fork was on track for its mainnet release in November. However, due to “a consensus issue”, which happened during the testing of a new update on October 13, the developers decided to delay Constantinople until January 2019.

On the way to Proof-of-Stake

Ethereum was designed as a platform for decentralized applications (DApps), and four main upgrades have been laid down in its development in order to make the network’s functional better suit this purpose. With the ultimate goal of the Ethereum Foundation to follow Vitalik Buterin’s vision and move from a Proof-of-Work (PoW) to a Proof-of-Stake protocol, the network is supposed to solve the mining and scalability related problems.

While this transition is planned to be made during the system’s final upgrade called Serenity, the preparation began almost immediately after the launch of the Ethereum network. The roadmap was divided into five main parts, with Byzantium and Constantinople being part of one phase called Metropolis.

What is Constantinople

The upcoming Constantinople hard fork includes five different Ethereum Improvement Proposals (EIPs) to smooth the transition from PoW to PoS. Once released, they would fundamentally change the Ethereum blockchain via a host of new upgrades, which prevent any backwards compatibility, meaning that nodes must either update synchronically with the entire system or carry on running as a separate blockchain entity.

Essential role of Constantinople in delaying the “Difficulty Bomb”

Furthermore, the Constantinople hard fork includes changes to Ethereum’s underlying mining economic policy and the delay of the “Difficulty Bomb”, aimed at making the production of new blocks more complex and unfavourable. This is a set of code programmed to trigger the so-called “Ethereum Ice Age”, the main purpose of which is to make mining unprofitable and promote transition to PoS.

The Ethereum Ice Age is designed to ensure that all participants switch to the new network after a hard fork is implemented. The bomb gradually complicates ETH mining, increasing the mining block time. With the introduction of the Casper update as part of the Serenity milestone, the complexity is supposed to grow higher. Miners will not be able to match the increase in complexity: the purchase of new equipment and its configuration will simply be economically unprofitable. Thus, the network will be left without miners and will “freeze” – the Ice Age will come. The bomb was introduced in September 2015, soon after the launch of the Ethereum network.

The “Difficulty Bomb” delay will be included in Constantinople to maintain the stability of the system, by leaving the network in the same state as before. Reducing the block reward also decreases the likelihood of a miner driven chain split as Ethereum approaches Proof-of-Stake.

Five elements of Constantinople

Code optimization and network stabilization, the main purposes of Constantinople as part of the scaling roadmap, will be reached through the implementation of five EIPs. These are the standards, developed by the Ethereum foundation members at different times, which include core protocol specifications, client APIs, and contract standards.

EIP 145

Feb. 13, 2017

An improvement proposal written by Alex Beregszaszi and Pawel Bylica to introduce native bitwise shifting as a more efficient method of information processing on Ethereum blockchain.

EIP 1014

April 20, 2018

Created by Vitalik Buterin, the upgrade is aimed at providing a better scaling solution based on "off-chain" transactions. It allows interactions to be made with addresses that do not exist on-chain yet but can be relied on.

EIP 1052

May 2, 2018

A proposal by core developer Nick Johnson, allows the optimization of large-scale code executions on Ethereum.

EIP 1234

July 19, 2018

Written by Parity release manager Afri Schoedon, EIP 1234 is supposed to reduce block mining rewards from 3 ETH to 2 ETH, and delay the “Difficulty Bomb” for 12 months. The changes are mainly directed towards network stabilization and smoother preparation for the implementation of the next upgrades, to gradually move away from PoW.

EIP 1283

Aug. 1, 2018

Based on EIP 1087, this upgrade mainly benefits smart contract developers by reducing excessive gas costs where it doesn’t match how most implementation works.

In a nutshell, all five EIPS have impacts to Ethereum that affect a number of the wider goals and initiatives still to be managed after the final release of Constantinople. Péter Szilágyi, lead developer of a popular Ethereum client, Geth, said that “the EIPs are mostly done.”

Timeline of the hard fork failure

The upgrade was originally scheduled to be launched on the Ropsten test network on October 14, but unexpectedly happened 24 hours ahead of schedule.

The hard fork kicked in around 15:21 UTC time on Saturday, or ~1 day earlier than expected since hash power and thus block times on Ropsten are notoriously hard to predict. However, after this, the fork froze and no new blocks were mined.

— Lane Rettig (@lrettig) October 15, 2018

First, the hard fork stalled at block 4,299,999 for two hours, indicating that Constantinople hadn’t been properly activated by miners. Even after testnet block processing resumed after an extended break, zero transactions were seen in the post-hard fork blocks.

Zero transactions records on Etherscan, October 21, 2018. Image source: Etherscan

Afri Schoedon, a developer at Parity, was the first to provide a solid update on his Twitter. He elaborated that a consensus issue had unfortunately occurred, catalyzing a three-way fork between Geth, Parity, and other Ethereum clients responsible for maintaining and upgrading the network. The thing is that ten developers groups are involved in the development of EIPs and the implementation of tests, and not all of them managed to get prepared for the release on time.

Image source: Github

Six days after the failed attempt, on October 19, the developers held a video call, where Schoedon provided a more in-depth analysis on what happened.

Image source: Jacek Sieka @jcksie

He pointed out that the deviation from the scheduled go-live time left many Ethereum community members and miners unprepared to support it, leading to a desynchronization of chains.

Even after block 4,300,000 was mined, which was previously set as a starting point of the Constantinople launch, Schoedon explained that clients were “using the wrong config” and were following the Byzantium protocol, which is what the Ethereum mainnet is built on today.

In a post-mortem of the Ropsten hard fork, the Parity developer touched on a few more points, writing:

Recently added hashpower caused reduced block times and caused this hard fork to happen much earlier than expected on Saturday which is, by all means, the worst time for a hard fork.Hard fork happened only 6 days after Geth release and 1 day after Parity Ethereum release, users had not enough time to upgrade.There is no fork monitor available, only http://ropsten-stats.parity.io which does not reveal details about the different chains.

However, delaying Constantinople may be a reasonable decision, according to Schoeden, as the arrival of it in the middle of the above inefficiencies would create more problems than it would solve:

“I keep getting the feeling that we’re trying to rush this and I would second that we should breathe and see what happens… I’m not comfortable talking about the hard fork date until we have the tests for Constantinople ready.”

During the meeting, the Ethereum Foundation team further discussed the Constantinople hard fork, which was announced on the official GitHub account of Ethereum. The next call will be on November 9, due to DevCon, which will be held from October 30 to November 2.

Concluding the meeting, the Parity tech developer, Afri Schoedon, has informed the community that the mainnet hard fork wouldn’t happen before the end of January, at the earliest. He also clarified that Ethereum Foundation developers needed a minimum of six weeks between the completion of the tests and mainnet upgrade.

“Not to move faster, but safer”

While the developers are analyzing the problem, various improvement suggestions have already been proposed. They include providing clearer specification of EIPs, including pseudo-code, which is more simplified and understandable for reviewing; and doing cross-client reviews of changes, when developers from different developers’ groups check each others’ code. What was unanimously agreed upon is that it’s better “not to move faster, but safer.”

The concerns about increasing pressure on core developers have been expressed by Afri Schoedon who hasn’t excluded the potential risk for the whole Ethereum project and reassured users that delaying is the wisest decision to be made.

Community’s reaction

Hudson Jameson has created a dedicated Reddit thread for an open dialogue with worried users, where the developers encountered critics and accusing messages, the total amount of which has already exceeded one hundred.

You have no idea of the competition in this space. This huge and useless hardfork delay has a very negative impact on the credibility of the Ethereum project. You should quit.

— Produde (@Dudtrade) October 20, 2018

“At this rate we'll get Casper in 2030.” @TrueValueCapital

While Schoedon and Jameson tried to urge the audience to stop putting pressure on the developers and hurrying them, there are those who showed understanding and support, and even joked that miners might be happy due to the delay of the release.

“I would rather they delay then need 3 last-minute, emergency patches like last year. Take your time and do it right guys. Software can be hard.” @potatodotexe

“Just keep doing what you need to do to be safe and thanks for all the great work.” @clarkster

While the Constantinople mainnet release is allegedly scheduled for January, the date of the hard fork tesnet launch hasn’t been determined yet, Hudson Jameson reported to Cointelegraph. In the interim, it remains to track the Constantinople progress and monitor the transition of the Ethereum blockchain into a PoS algorithm, which is required for the further development of the network, according to Vitalik Buterin.

I think I've been pretty consistent about my view that (i) every present-day existing blockchain, including ETH and BTC, sucks, and (ii) PoS is necessary. Not sure why anyone surprised.

— Vitalik Non-giver of Ether (@VitalikButerin) September 4, 2018
Tags
Related Posts
Analysts debate whether Ethereum’s London hard fork is a 'sell the news' event
Ethereum advocates are bubbling with anticipation over the upcoming London hard fork, which is scheduled to take place at block height 12,965,000 on Thursday. Data from Cointelegraph Markets Pro and TradingView shows that the price of Ether (ETH) rallied from a low at $2,450 in the early hours on Wednesday to an intraday high at $2,772 for an 8.2% gain on the day. One of the most common occurrences in the crypto market is a large price run-up ahead of a major news announcement or protocol upgrade, which is subsequently followed by a price dump, as those who got in …
Blockchain / Aug. 5, 2021
Ethereum price all-time high follows reduced gas costs and DeFi revival
Mainstream adoption of cryptocurrency continues to reach new highs in 2021 thanks to the growth of popular sectors like decentralized finance (DeFi) and nonfungible tokens (NFTs). The explosive growth seen over the past year would not have been possible without the Ethereum network, which saw the price of Ether (ETH) break out to a new all-time high on April 27 following the successful launch of the "Berlin" upgrade on April 15. Data from Cointelegraph Markets and TradingView shows that the price of Ether has rallied 27% over the past five days from a low of $2,107 on April 25 to …
Blockchain / April 27, 2021
Ethereum Block Time Reduced by 25% After Muir Glacier Hard Fork
The average block time on the Ethereum blockchain decreased by almost a quarter after the mining difficulty was decreased. Data reported on Ethereum block explorer Etherscan shows that from Jan. 1 to Jan. 4, the daily average block time on the blockchain decreased from 17.16 seconds to 12.96. This translates to a 24.48% shorter block time. Chart of the Ethereum average block time March 3-Jan. 4. Source: Etherscan Obviously, the block time decrease resulted in a higher number of blocks mined daily and a higher Ether (ETH) inflation. According to Etherscan’s Ethereum block count and rewards chart, during Jan. 1, …
Blockchain / Jan. 5, 2020
Ethereum Istanbul Hard Fork Get Support From Major Crypto Exchanges
Following the successful Ethereum Istanbul hard fork update, several popular exchanges have announced their official support for the network upgrade. Yesterday, on Dec. 7, the Ethereum’s network saw ample collaboration between node operators and miners to update the software to support the Istanbul hard fork. Some crypto exchanges even sounded their willingness to update a few days prior to the scheduled hard fork. A widely supported hard fork Notably, Binance announced support for the upgrade on Dec. 5 and the day afterwards its U.S. subsidiary did the same. Coinbase also tweeted yesterday that Ethereum and ERC20 deposits and withdrawals have …
Blockchain / Dec. 9, 2019
Ethereum Classic Successfully Implements Atlantis Hard Fork
The team behind Ethereum Classic (ETC) has activated the Atlantis hard fork aimed at the improvement of the altcoin’s functionality and compatibility with Ethereum (ETH). The news was announced in a Twitter post by ETC Director of Developer Relations, Yaz Khoury on Sept 12. Khoury congratulated the project with the development, saying: “Congratulations @eth_classic on the successful activation of the Atlantis Hardfork! Was one of the longest debates to reach consensus along with a lot of the immutability politics Learned a lot about the beauty of decentralization and a distributed community.” Going according to plan As such, ETC successfully performed …
Blockchain / Sept. 12, 2019