Skip to content

Commit

Permalink
better variable naming
Browse files Browse the repository at this point in the history
  • Loading branch information
g11tech committed Oct 28, 2024
1 parent 9614a46 commit 9f6879c
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 @@ -86,13 +86,13 @@ def calc_excess_blob_gas(parent: Header) -> int:
if(parent.timestamp < FORK_TIMESTAMP)
normalizedParentExcessBlobGas = parent.excess_blob_gas * EXCESS_BLOB_GAS_NORMALIZATION_FACTOR // OLD_TARGET_BLOB_GAS_PER_BLOCK
targetBlobGas = OLD_TARGET_BLOB_GAS_PER_BLOCK
maxExcessGasPossibleDiff = OLD_TARGET_BLOB_GAS_PER_BLOCK
maxExcessGasDiffPossible = OLD_TARGET_BLOB_GAS_PER_BLOCK
else
normalizedParentExcessBlobGas = parent.excess_blob_gas
targetBlobGas = parent.target_blob_count * GAS_PER_BLOB
maxExcessGasPossibleDiff = max(parent.max_blob_count - parent.target_blob_count, parent.target_blob_count) * GAS_PER_BLOB
maxExcessGasDiffPossible = max(parent.max_blob_count - parent.target_blob_count, parent.target_blob_count) * GAS_PER_BLOB

return (normalizedParentExcessBlobGas + (parent.blob_gas_used - targetBlobGas) * EXCESS_BLOB_GAS_NORMALIZATION_FACTOR // maxExcessGasPossibleDiff)
return (normalizedParentExcessBlobGas + (parent.blob_gas_used - targetBlobGas) * EXCESS_BLOB_GAS_NORMALIZATION_FACTOR // maxExcessGasDiffPossible)

def get_base_fee_per_blob_gas(parent: Header) -> int:
if parent.timestamp < FORK_TIMESTAMP
Expand Down

0 comments on commit 9f6879c

Please sign in to comment.