Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
g11tech committed Oct 23, 2024
1 parent 606c590 commit da828b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions EIPS/eip-7742.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ At the fork block (where parent.timestamp < FORK_TIMESTAMP), we convert parent's

```python
def calc_excess_blob_gas(block: Header) -> int:
if(block.timestamp < FORK_TIMESTAMP)
parentExcessBlobGas = block.excess_blob_gas * 100E6 // 393216
if(block.parent.timestamp < FORK_TIMESTAMP)
normalizedParentExcessBlobGas = block.parent.excess_blob_gas * 100E6 // 393216
targetBlobGas = TARGET_BLOB_GAS_PER_BLOCK
else
parentExcessBlobGas = block.excess_blob_gas
normalizedParentExcessBlobGas = block.parent.excess_blob_gas
targetBlobGas = block.target_blob_count * GAS_PER_BLOB

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

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

0 comments on commit da828b1

Please sign in to comment.