EIP-1240 Removing the difficulty bomb (Remove Difficulty Bomb)

No call decision · Consensus & staking · EIP status Withdrawn · created 2018-07-21

A proposal to remove the 'difficulty bomb,' which automatically raises block-creation difficulty over time, and instead calculate difficulty independent of block number.

Why it is needed

The difficulty bomb (ice age) is designed so that a term (epsilon) in the difficulty formula grows larger as the block number increases, meaning block times get progressively longer over time. This acts as an artificial pressure device meant to push the network toward migrating to Casper (the proof-of-stake transition). The author argues that which code to run should be decided by economic participants (users) themselves, not by miners, and that miners ultimately just follow whichever chain economic participants actually use in large numbers. If Casper is really a feature people want, they will naturally choose it even without pressure, so the logic is that a forcing mechanism like the difficulty bomb is unnecessary.

What changes

Today

After EIP-1240

Who is affected

In depth

Changes to the difficulty calculation

In the calc_difficulty function, the epsilon component was previously a function whose value grew with block number. This proposal fixes that epsilon value at 0, independent of block number, once block.number reaches or exceeds FORK_BLOCK_NUMBER. In other words, it removes the difficulty increase that the difficulty bomb produced by making it exactly zero.

Background (motivation)

The author points out that the difficulty bomb was designed on the premise that 'miners decide which code economic participants will use.' In reality, however, miners mine whichever chain is most profitable, and the most profitable chain is the one economic participants actually use. Even if 99% of miners mine a chain nobody uses, that chain becomes worthless and mining on it eventually stops. The author argues that miners merely follow economic participants, not the other way around.

Rationale

Removing the difficulty bomb leaves it to economic participants' free choice whether to accept Casper once it is introduced. Participants who do not want Casper should be able to keep participating in the existing network with an unpatched client, and the author argues that this freedom of choice is a core value of distributed ledger technology (DLT). The author adds that if the development team is not confident economic participants will want Casper, priorities should be reconsidered rather than forcing it through pressure. As a personal opinion, the author expects that most economic participants will move to proof-of-stake and sharding naturally, through client defaults alone, without additional pressure.

Backward compatibility and application method

Because this change alters the difficulty calculation method itself, it is not backward compatible. It therefore cannot be applied at an arbitrary point and, as stated, must be introduced as part of a scheduled hard fork keyed to a fixed block number (FORK_BLOCK_NUMBER).

Testing and implementation status

The original text states that test cases have not yet been written and will be created once developers decide to adopt this specification or implement it in clients. A PR reflecting this change is linked on the Yellow Paper side (ethereum/yellowpaper#710).

Current status

This EIP was written on 2018-07-21 and its current status is Withdrawn. In other words, this proposal was never actually adopted or included in a hard fork; it was withdrawn. The call records provided contain no fork-inclusion decision for this EIP.

Original EIP · ← EIPs