EIP-7691 · Final · Core · 2024-04-17
EIP-7691: Blob throughput increase
Raised Ethereum's blob target and maximum from 3/6 to 6/9 per block in the Pectra upgrade, doubling the target data space available to rollups.
What problem does it solve?
Rollups post their transaction data to Ethereum as blobs, introduced by EIP-4844 in the Dencun upgrade. Dencun set a cautious target of 3 blobs per block and a maximum of 6, because nobody could predict how mainnet's peer-to-peer network would cope with the extra data.
After Dencun went live, monitoring showed a stable network and a falling reorg rate, and gossipsub improvements such as IDONTWANT messages promised bandwidth savings. Blob demand from rollups was growing, so this EIP takes a simple, short-term step: raise the numbers, without waiting for bigger changes like PeerDAS.
How it works
It is purely a parameter change, activated with the Prague/Electra ("Pectra") upgrade (EIP-7600):
| Parameter | Before (Cancun/Deneb) | After (Prague/Electra) |
|---|---|---|
| Target blobs per block | 3 | 6 |
| Max blobs per block | 6 | 9 |
TARGET_BLOB_GAS_PER_BLOCK |
393216 | 786432 |
MAX_BLOB_GAS_PER_BLOCK |
786432 | 1179648 |
BLOB_BASE_FEE_UPDATE_FRACTION |
3338477 | 5007716 |
The consensus layer uses the blob counts; the execution layer uses the gas values. The existing calc_excess_blob_gas and get_base_fee_per_blob_gas functions from EIP-4844 are unchanged, they just read the new constants from the first fork block onward.
Why a new update fraction? With 3/6, the ratio was 1:2, so a full block and an empty block moved the blob base fee by roughly the same amount (+12.5 % / −11.1 %). At 6/9 an empty block is 6 under target but a full one only 3 over, which breaks the symmetry. The new fraction is a compromise: a full block now raises the blob fee by about 8.2 %, and an empty block lowers it by about 14.5 %.
Sample code
Blob base fee formula from EIP-4844 with the new constant (Python):
MIN_BASE_FEE_PER_BLOB_GAS = 1
BLOB_BASE_FEE_UPDATE_FRACTION_PRAGUE = 5007716
TARGET_BLOB_GAS_PER_BLOCK = 786432 # 6 blobs * 131072
def calc_excess_blob_gas(parent_excess: int, parent_used: int) -> int:
total = parent_excess + parent_used
return 0 if total < TARGET_BLOB_GAS_PER_BLOCK else total - TARGET_BLOB_GAS_PER_BLOCK
def fake_exponential(factor: int, numerator: int, denominator: int) -> int:
i, output, acc = 1, 0, factor * denominator
while acc > 0:
output += acc
acc = (acc * numerator) // (denominator * i)
i += 1
return output // denominator
def base_fee_per_blob_gas(excess_blob_gas: int) -> int:
return fake_exponential(MIN_BASE_FEE_PER_BLOB_GAS, excess_blob_gas,
BLOB_BASE_FEE_UPDATE_FRACTION_PRAGUE)
Things to know
- Status: Final, part of the Pectra upgrade.
- Only the parameters changed; blob transaction format and fee mechanics are the same as in EIP-4844.
- The 2:3 target/max ratio means the blob fee drops faster than it rises. That is intentional, but it means fees react asymmetrically to bursts.
- The spec calls this a short-term increase; longer-term blob scaling relies on PeerDAS and later parameter changes.