Skip to content

Commit

Permalink
clarify
Browse files Browse the repository at this point in the history
  • Loading branch information
g11tech committed Nov 25, 2024
1 parent b1867e7 commit 64fdb7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion EIPS/eip-7742.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,9 @@ Furthermore `get_base_fee_per_blob_gas` as specified by [EIP-4844](./eip-4844.md
def calc_excess_blob_gas(parent: Header) -> int:
# normalize parent's excess blob gas if this block was fork block
if(parent.timestamp < FORK_TIMESTAMP)
normalized_parent_excess_blob_gas = parent.excess_blob_gas * EXCESS_BLOB_GAS_NORMALIZATION_TARGET_BLOBS // OLD_TARGET_BLOBS_PER_BLOCK
# note multiplication of parent excess blob gas with EXCESS_BLOB_GAS_NORMALIZATION_TARGET_BLOBS is before
# integer division by OLD_TARGET_BLOBS_PER_BLOCK to preserve sensitivity
normalized_parent_excess_blob_gas = (parent.excess_blob_gas * EXCESS_BLOB_GAS_NORMALIZATION_TARGET_BLOBS) // OLD_TARGET_BLOBS_PER_BLOCK
target_blobs_per_block = OLD_TARGET_BLOBS_PER_BLOCK
else
normalized_parent_excess_blob_gas = parent.excess_blob_gas
Expand Down

0 comments on commit 64fdb7b

Please sign in to comment.