Skip to content

eip-7918: blob base fee bounded by execution cost - #2835

Merged
palinatolmach merged 11 commits into
masterfrom
eip-7918
Sep 7, 2026
Merged

eip-7918: blob base fee bounded by execution cost#2835
palinatolmach merged 11 commits into
masterfrom
eip-7918

Conversation

@anvacaru

@anvacaru anvacaru commented Dec 19, 2025

Copy link
Copy Markdown
Contributor

This PR implements EIP-7918, which introduces a reserve price mechanism for the blob base fee to ensure proper fee market functioning and fair pricing for blob verification compute costs.

  • Modified Cexcessblob to accept a 4th parameter (BASE_FEE) for reserve price calculation, representing the base fee of the parent block. Rules have been updated to follow this logic:
def calc_excess_blob_gas(parent: Header) -> int:
    target_blob_gas = GAS_PER_BLOB * blobSchedule.target
    if parent.excess_blob_gas + parent.blob_gas_used < target_blob_gas:
        return 0

    if BLOB_BASE_COST * parent.base_fee_per_gas > GAS_PER_BLOB * get_base_fee_per_blob_gas(parent):
        return parent.excess_blob_gas + parent.blob_gas_used * (blobSchedule.max - blobSchedule.target) // blobSchedule.max
    else:
        return parent.excess_blob_gas + parent.blob_gas_used - target_blob_gas
  • A new previousBaseFee cell has been added to track the base fee of the parent block.

@anvacaru
anvacaru marked this pull request as ready for review July 27, 2026 10:56
Comment thread tests/execution-spec-tests/failing.llvm
@palinatolmach
palinatolmach merged commit 01598f7 into master Sep 7, 2026
26 of 27 checks passed
@palinatolmach
palinatolmach deleted the eip-7918 branch September 7, 2026 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants