Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
g11tech committed Oct 23, 2024
1 parent da828b1 commit a01e294
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions EIPS/eip-7742.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ At the fork block (where parent.timestamp < FORK_TIMESTAMP), we convert parent's
def calc_excess_blob_gas(block: Header) -> int:
if(block.parent.timestamp < FORK_TIMESTAMP)
normalizedParentExcessBlobGas = block.parent.excess_blob_gas * 100E6 // 393216
targetBlobGas = TARGET_BLOB_GAS_PER_BLOCK
blockTargetBlobGas = TARGET_BLOB_GAS_PER_BLOCK
else
normalizedParentExcessBlobGas = block.parent.excess_blob_gas
targetBlobGas = block.target_blob_count * GAS_PER_BLOB
blockTargetBlobGas = block.target_blob_count * GAS_PER_BLOB

return (normalizedParentExcessBlobGas + (block.blob_gas_used - targetBlobGas) * 100E6 // NORMALIZED_BLOB_BASE_FEE_UPDATE_FRACTION)
return (normalizedParentExcessBlobGas + (block.blob_gas_used - blockTargetBlobGas) * 100E6 // blockTargetBlobGas)

def get_base_fee_per_blob_gas(parent: Header) -> int:
return fake_exponential(
Expand Down

0 comments on commit a01e294

Please sign in to comment.