2 Seconds Block Finality on Harmony Mainnet

Rongjian Lan
Dec 9, 2020 · 5 min read

In the age of digital business and fast-paced economy, online applications need to provide users with the best experience to retain them. One important aspect is how fast the apps respond to users’ actions. A slow website will test users’ short patience and eventually lose them. The same rule applies to decentralized applications where only a fast and responsive experience leads to high user satisfaction and retention rate.

With this in mind and after significant performance optimization and protocol improvement, we are launching 2 seconds block time on Harmony mainnet to allow Dapps to provide even faster blockchain experience. With 2 seconds block time, block finality is also shortened to within 2 seconds. In fact, transactions sent to Harmony mainnet will be confirmed generally in around 1 second and at most 2 seconds. With such a significant reduction in transaction latency, Dapps built on Harmony will find it easier to keep the users engaged and achieve high user satisfaction.

The Faster The Better

Slow applications involving financial transactions also reduces the usage and activities, hindering the growth of the application. A study showed that a 1-second lag in Amazon’s website could cost them $1.6 billion in sales. In the world of Defi, more users and total locked value (TVL) could have been obtained if our existing blockchain infrastructure can confirm transactions a lot faster.

Without learning the lesson from the past 20 years of the internet revolution, it will be laughable to talk about building the decentralized Amazon, Google or Facebook. Harmony knows this by heart and has been focused on building the fastest and secure blockchain to make the Dapp experience as smooth as Web 2.0 applications. Besides high transaction throughput (TPS) which we achieved with sharding, we believe an extremely low transaction latency is also the key to bring mass adoption to the decentralized economy. Harmony’s 2 seconds block time and sub-2 seconds transaction finality make it possible to build revolutionary decentralized applications with great usability and performance that matches existing online applications.

How 2s Block Time is Achieved

Validator Signature Aggregation

We’ve implemented the feature to allow validators with multiple BLS keys to aggregate all the signatures into a single aggregated signature (BLS signature aggregation) and send as a single p2p message. This setup significantly reduces the number of p2p messages passed around in the network, resulting in 50%+ reduction on network usage. It also significantly reduces the leader’s CPU usage from 60% to 20% since the leader now processes less number of p2p messages in each consensus round.

Block Proposal Pipelining

To avoid wasting this hundreds of milliseconds in the block proposal, we employed pipelining technique where the leader starts proposing a new block immediately after collecting 2/3 of the signatures (the minimum quorum achieved). Basically, the new block proposal process and the collection of the rest of the signatures (from 2/3 to 100%) now happen concurrently. This makes sure that the time to confirm a block (block finality) is constrained by nothing but only the network speed and the consensus message processing speed.

2 seconds block time and finality open up all the possibilities for Dapp developers to build the fastest and highly usable applications to prepare for real adoption. We welcome all Dapp developers to participate in this blockchain revolution with Harmony’s low-cost, low-latency and highly scalable blockchain infrastructure.

To learn more about Block Time, Block Finality, and the potential implications on the user, for developers, and companies, we created this educational video:

Developers can build on Harmony today, a fast and open blockchain for decentralized applications, suited to handle DeFi and cross-border finance. Harmony Mainnet supports state sharding with instant finality. Our staking mechanism reduces centralization while supporting delegation and slashing.

We ❤️ Developers.

Want to build on Harmony? We have grants available. 👉 Apply HERE 👈


To scale trust for billions of people and create a…

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store