EIP-7788 Dynamic target blob count

No call decision · Scaling & data · EIP status Withdrawn · created 2024-10-15

EIP-7788 proposes automatically adjusting the target amount of blob space every epoch based on average cost, in order to keep L2 transaction costs at a consistent level.

Why it is needed

Ethereum fixes the blob target at 50% of total capacity and uses EIP-1559 to smooth short-term demand fluctuations. However, when the target is fixed, if the target is higher than actual demand, blob space effectively gets priced for free, reducing the fees burned, which is negative for the ETH price and network security. For example, if the introduction of Data Availability Sampling (DAS) greatly increases the maximum blob count but demand does not immediately catch up, keeping the target unchanged could result in L2 transactions being charged almost nothing for months or years. This proposal has the target automatically rise and fall in line with the average blob cost, aiming to keep L2 transaction costs at a reasonable, steady level without core developers having to manually intervene every time demand changes.

What changes

Today

After EIP-7788

Who is affected

In depth

Dynamic targeting formula

The target blob count changes every epoch based on the average blob cost (mean_blob_cost) of the immediately preceding epoch. blob_cost_diff = mean_blob_cost - TARGET_BLOB_COST is computed; if this value is less than -BLOB_COST_CHANGE_MARGIN the direction is set to -1, if greater than BLOB_COST_CHANGE_MARGIN it is set to +1, and otherwise 0. next_epoch_blob_count is obtained by adding the previous epoch's target multiplied by the direction and TARGET_BLOB_COUNT_CHANGE_RATE (1), then clamping the result between MIN_TARGET_BLOB_COUNT and MAX_TARGET_BLOB_COUNT.

Parameter values

FORK_TIMESTAMP is TBD and not yet determined. TARGET_BLOB_COUNT_CHANGE_RATE is 1, MIN_TARGET_BLOB_COUNT is 1, and MAX_TARGET_BLOB_COUNT is 3, matching the current static target. BLOB_COST_CHANGE_MARGIN is 2^48 and TARGET_BLOB_COST is 2^49. This margin value is designed so that the target stays unchanged as long as the blob cost is within plus or minus 50% of TARGET_BLOB_COST.

Engine API extension and dependency on EIP-7742

The Engine API is extended so that the CL requests the mean_blob_cost for the epoch from the EL at the end of each epoch. The CL uses this value to compute the target blob count for the next epoch. This mechanism presupposes EIP-7742 (the approach where the CL sets blob parameters).

Basis for the TARGET_BLOB_COST value

Assuming the compressed size of a simple transfer transaction is 23 bytes, (23 / 125000) * TARGET_BLOB_COST is approximately 104 gwei. The original text explains that, at prices at the time, this means $1 covers blob space for roughly 3700 simple transfers. However, this is only the blob space cost; once rollup execution cost is added, the total cost of an L2 transaction is higher.

Reason for choosing ETH as the basis

An alternative of pegging the target cost to a fiat currency was also considered, but was excluded because choosing a specific fiat currency is not trust neutral, and bringing an exchange rate oracle into the protocol could become an attack vector. Having validators vote on the target blob cost was also considered, but was likewise judged not trust neutral, since validators could have a conflict of interest, for example by operating rollups.

Reason it is not applied to the block gas target

The same dynamic adjustment logic could also be applied to the block gas target, but the original text notes that demand for blockspace is generally always high, so cases where gas cost becomes excessively low are rare. It therefore argues that the gas target should stay fixed at the maximum average throughput the network can safely handle, and that, unlike blobs, it does not need a dynamic target.

Current status

This EIP's status is Withdrawn, meaning the proposal is no longer being pursued. The Security Considerations section is also left as TODO in the original text, stating only that 'discussion is needed,' indicating security review was not completed. The Backwards Compatibility, Test Cases, and Reference Implementation sections are also all left empty as N/A.

Original EIP · ← EIPs