Business Insights
  • Home
  • Crypto
  • Finance Expert
  • Business
  • Invest News
  • Investing
  • Trading
  • Forex
  • Videos
  • Economy
  • Tech
  • Contact

Archives

  • September 2025
  • August 2025
  • July 2025
  • June 2025
  • May 2025
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • August 2023
  • January 2023
  • December 2021
  • July 2021
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019

Categories

  • Business
  • Crypto
  • Economy
  • Finance Expert
  • Forex
  • Invest News
  • Investing
  • Tech
  • Trading
  • Uncategorized
  • Videos
Apply Loan
Money Visa
Advertise Us
Money Visa
  • Home
  • Crypto
  • Finance Expert
  • Business
  • Invest News
  • Investing
  • Trading
  • Forex
  • Videos
  • Economy
  • Tech
  • Contact
Announcing the Trillion Dollar Security Initiative
  • Forex

Hive: How we strived for a clean fork

  • September 6, 2025
  • Roubens Andy King
Total
0
Shares
0
0
0
Total
0
Shares
Share 0
Tweet 0
Pin it 0

The DAO soft-fork attempt was difficult. Not only did it turn out that we underestimated the side effects on the consensus protocol (i.e. DoS vulnerability), but we also managed to introduce a data race into the rushed implementation that was a ticking time bomb. It was not ideal, and even though averted at the last instance, the fast approaching hard-fork deadline looked eerily bleak to say the least. We needed a new strategy…

The stepping stone towards this was an idea borrowed from Google (courtesy of Nick Johnson): writing up a detailed postmortem of the event, aiming to assess the root causes of the issue, focusing solely on the technical aspects and appropriate measures to prevent recurrence.

Technical solutions scale and persist; blaming people does not. ~ Nick

From the postmortem, one interesting discovery from the perspective of this blog post was made. The soft-fork code inside [go-ethereum](https://github.com/ethereum/go-ethereum) seemed solid from all perspectives: a) it was thoroughly covered by unit tests with a 3:1 test-to-code ratio; b) it was thoroughly reviewed by six foundation developers; and c) it was even manually live tested on a private network… Yet still, a fatal data race remained, which could have potentially caused severe network disruption.

It transpired that the flaw could only ever occur in a network consisting of multiple nodes, multiple miners and multiple blocks being minted simultaneously. Even if all of those scenarios held true, there was only a slight chance for the bug to surface. Unit tests cannot catch it, code reviewers may or may not catch it, and manual testing catching it would be unlikely. Our conclusion was that the development teams needed more tools to perform reproducible tests that would cover the intricate interplay of multiple nodes in a concurrent networked scenario. Without such a tool, manually checking the various edge cases is unwieldy; and without doing these checks continuously as part of the development workflow, rare errors would become impossible to discover in time.

And thus, hive was born…

What is hive?

Ethereum grew large to the point where testing implementations became a huge burden. Unit tests are fine for checking various implementation quirks, but validating that a client conforms to some baseline quality, or validating that clients can play nicely together in a multi client environment, is all but simple.

Hive is meant to serve as an easily expandable test harness where anyone can add tests (be those simple validations or network simulations) in any programming language that they are comfortable with, and hive should simultaneously be able to run those tests against all potential clients. As such, the harness is meant to do black box testing where no client specific internal details/state can be tested and/or inspected, rather emphasis would be put on adherence to official specs or behaviors under different circumstances.

Most importantly, hive was designed from the ground up to run as part of any clients' CI workflow!

How does hive work?

Hive's body and soul is [docker](https://www.docker.com/). Every client implementation is a docker image; every validation suite is a docker image; and every network simulation is a docker image. Hive itself is an all encompassing docker image. This is a very powerful abstraction…

Since Ethereum clients are docker images in hive, developers of the clients can assemble the best possible environment for their clients to run in (dependency, tooling and configuration wise). Hive will spin up as many instances as needed, all of them running in their own Linux systems.

Similarly, as test suites validating Ethereum clients are docker images, the writer of the tests can use any programing environment he is most familiar with. Hive will ensure a client is running when it starts the tester, which can then validate if the particular client conforms to some desired behavior.

Lastly, network simulations are yet again defined by docker images, but compared to simple tests, simulators not only execute code against a running client, but can actually start and terminate clients at will. These clients run in the same virtual network and can freely (or as dictated by the simulator container) connect to each other, forming an on-demand private Ethereum network.

How did hive aid the fork?

Hive is neither a replacement for unit testing nor for thorough reviewing. All current employed practices are essential to get a clean implementation of any feature. Hive can provide validation beyond what's feasible from an average developer's perspective: running extensive tests that can require complex execution environments; and checking networking corner cases that can take hours to set up.

In the case of the DAO hard-fork, beyond all the consensus and unit tests, we needed to ensure most importantly that nodes partition cleanly into two subsets at the networking level: one supporting and one opposing the fork. This was essential since it's impossible to predict what adverse effects running two competing chains in one network might have, especially from the minority's perspective.

As such we've implemented three specific network simulations in hive:

  • The first to check that miners running the full Ethash DAGs generate correct block extra-data fields for both pro-forkers and no-forkers, even when trying to naively spoof.

  • The second to verify that a network consisting of mixed pro-fork and no-fork nodes/miners correctly splits into two when the fork block arrives, also maintaining the split afterwards.

  • The third to check that given an already forked network, newly joining nodes can sync, fast sync and light sync to the chain of their choice.

The interesting question though is: did hive actually catch any errors, or did is just act as an extra confirmation that everything's all right? And the answer is, both. Hive caught three fork-unrelated bugs in Geth, but also heavily aided Geth's hard-fork development by continuously providing feedback on how changes affected network behavior.

There was some criticism of the go-ethereum team for taking their time on the hard-fork implementation. Hopefully people will now see what we were up to, while concurrently implementing the fork itself. All in all, I believe hive turned out to play quite an important role in the cleanness of this transition.

What is hive's future?

The Ethereum GitHub organization features [4 test tools already](https://github.com/ethereum?utf8=%E2%9C%93&query=test), with at least one EVM benchmark tool cooking in some external repository. They are not being utilised to their full extent. They have a ton of dependencies, generate a ton of junk and are very complicated to use.

With hive, we're aiming to aggregate all the various scattered tests under one universal client validator that has minimal dependencies, can be extended by anyone, and can run as part of the daily CI workflow of client developers.

We welcome anyone to make contributions to the project, be that adding new clients to validate, validators to test with, or simulators to find interesting networking issues. In the meantime, we'll try to further polish hive itself, adding support for running benchmarks as well as mixed-client simulations.

With a bit or work, maybe we'll even have support for running hive in the cloud, allowing it to run network simulations at a much more interesting scale.


Total
0
Shares
Share 0
Tweet 0
Pin it 0
Roubens Andy King

Previous Article
7,626 BTC Aged 3–5 Years Moves Onchain
  • Crypto

7,626 BTC Aged 3–5 Years Moves Onchain

  • September 5, 2025
  • Roubens Andy King
Read More
Next Article
Hard Fork Completed | Ethereum Foundation Blog
  • Crypto

Hard Fork Completed | Ethereum Foundation Blog

  • September 6, 2025
  • Roubens Andy King
Read More
You May Also Like
To fork or not to fork
Read More
  • Forex

To fork or not to fork

  • Roubens Andy King
  • September 6, 2025
Altcoin Season Here? Expert Says It May Be ‘Corporate’ This Time
Read More
  • Forex

Altcoin Season Here? Expert Says It May Be ‘Corporate’ This Time

  • Roubens Andy King
  • September 6, 2025
Why Buying Bitcoin in 2010 Probably Wouldn’t Make You a Millionaire
Read More
  • Forex

Why Buying Bitcoin in 2010 Probably Wouldn’t Make You a Millionaire

  • Roubens Andy King
  • September 6, 2025
Cycle Peak Indicates 95% Completion
Read More
  • Forex

Cycle Peak Indicates 95% Completion

  • Roubens Andy King
  • September 6, 2025
Senate Crypto Bill Clarifies Tokenized Stocks Remain Securities
Read More
  • Forex

Senate Crypto Bill Clarifies Tokenized Stocks Remain Securities

  • Roubens Andy King
  • September 6, 2025
Gemini expands in Europe with ETH and SOL staking
Read More
  • Forex

Gemini expands in Europe with ETH and SOL staking

  • Roubens Andy King
  • September 6, 2025
MemeCore Explodes 3,700% — But Is A Collapse Around The Corner?
Read More
  • Forex

MemeCore Explodes 3,700% — But Is A Collapse Around The Corner?

  • Roubens Andy King
  • September 5, 2025
Bitcoin Unlikely To Reach Price Peak In Q4 2025: Analyst
Read More
  • Forex

Bitcoin Unlikely To Reach Price Peak In Q4 2025: Analyst

  • Roubens Andy King
  • September 5, 2025

Recent Posts

  • To fork or not to fork
  • Old Bitcoin Supply Keeps Moving Into ETFs: Data Shows Three Waves So far
  • Altcoin Season Here? Expert Says It May Be ‘Corporate’ This Time
  • A Look at Non-Traditional Indexes and Funds That Track Them
  • Crypto’s future lies in utility that lets payments scale globally
Featured Posts
  • To fork or not to fork 1
    To fork or not to fork
    • September 6, 2025
  • Old Bitcoin Supply Keeps Moving Into ETFs: Data Shows Three Waves So far 2
    Old Bitcoin Supply Keeps Moving Into ETFs: Data Shows Three Waves So far
    • September 6, 2025
  • Altcoin Season Here? Expert Says It May Be ‘Corporate’ This Time 3
    Altcoin Season Here? Expert Says It May Be ‘Corporate’ This Time
    • September 6, 2025
  • A Look at Non-Traditional Indexes and Funds That Track Them 4
    A Look at Non-Traditional Indexes and Funds That Track Them
    • September 6, 2025
  • Crypto’s future lies in utility that lets payments scale globally 5
    Crypto’s future lies in utility that lets payments scale globally
    • September 6, 2025
Recent Posts
  • Why Buying Bitcoin in 2010 Probably Wouldn’t Make You a Millionaire
    Why Buying Bitcoin in 2010 Probably Wouldn’t Make You a Millionaire
    • September 6, 2025
  • Ethereum Outflows Drive Binance Supply Ratio Under 0.037, Signaling Bullish Setup
    Ethereum Outflows Drive Binance Supply Ratio Under 0.037, Signaling Bullish Setup
    • September 6, 2025
  • Cycle Peak Indicates 95% Completion
    Cycle Peak Indicates 95% Completion
    • September 6, 2025
Categories
  • Business (2,057)
  • Crypto (1,525)
  • Economy (120)
  • Finance Expert (1,687)
  • Forex (1,525)
  • Invest News (2,359)
  • Investing (1,480)
  • Tech (2,056)
  • Trading (2,024)
  • Uncategorized (2)
  • Videos (810)

Subscribe

Subscribe now to our newsletter

Money Visa
  • Privacy Policy
  • DMCA
  • Terms of Use
Money & Invest Advices

Input your search keywords and press Enter.