EIPs Explained

EIP-2387 · Final · Meta · 2019-11-22

EIP-2387: Hardfork Meta: Muir Glacier

The meta-EIP for the Muir Glacier hard fork, which did one thing: push back the difficulty bomb (via EIP-2384) before it slowed mainnet blocks to a crawl.

What problem does it solve?

Proof-of-work Ethereum had a "difficulty bomb" (also called the Ice Age) built into its difficulty formula. It adds an extra term that doubles every 100,000 blocks. For a long time it is invisible, but once it grows large enough the normal difficulty adjustment can no longer compensate and block times climb sharply.

In late 2019, shortly after the Istanbul upgrade (EIP-1679), block times were already starting to rise because of the bomb. Muir Glacier was an emergency-style upgrade whose only purpose was to defuse it for a while, giving developers time to decide whether to redesign or remove the mechanism.

How it works

A hardfork meta-EIP doesn't change the protocol itself; it lists which EIPs activate together and when.

  • Codename: Muir Glacier
  • Mainnet activation: block 9,200,000 (early January 2020)
  • Ropsten activation: block 7,117,117
  • Included EIPs: only EIP-2384, "Istanbul/Berlin Difficulty Bomb Delay"

EIP-2384 makes clients compute the bomb term from a "fake" block number that is several million blocks behind the real one, which resets the bomb to a much smaller value.

The fork deliberately did not change issuance: the block reward stayed at 2 ETH, unlike earlier bomb delays (Byzantium, Constantinople) that also cut the reward.

It never activated on proof-of-authority testnets, so it has no effect on their EIP-2124 fork identifiers.

Sample code

How a client typically records the fork in its chain configuration (geth-style JSON genesis config):

{
  "config": {
    "chainId": 1,
    "istanbulBlock": 9069000,
    "muirGlacierBlock": 9200000
  }
}

The difficulty bomb change, in pseudocode:

# EIP-2384 delay: compute the ice-age term from a shifted block number
fake_block_number = max(0, block.number - 9_000_000)
period = fake_block_number // 100_000
bomb = 2 ** (period - 2) if period >= 2 else 0

Things to know

  • Status is Final; Muir Glacier is part of Ethereum's history and all mainnet clients include it.
  • The meta-EIP also argues that the Ice Age is hard to model and predict, and commits to revisiting the mechanism. In practice the bomb was delayed several more times (for example EIP-3554 in London) until the move to proof of stake made it irrelevant.
  • Because it only shifts the bomb, there is no impact on contracts, transactions or tooling beyond clients needing to know the fork block.

#hardfork #meta #difficulty-bomb #ice-age #pow

Details

Authors
James Hancock (@madeoftin)
Status
Final
Type
Meta
Created
2019-11-22
Requires
Required by

Machine-readable: Markdown · JSON