We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a956eb2 commit 662f846Copy full SHA for 662f846
src/ethereum/prague/vm/gas.py
@@ -292,11 +292,11 @@ def calculate_excess_blob_gas(parent_header: Header) -> U64:
292
parent_blob_gas = (
293
parent_header.excess_blob_gas + parent_header.blob_gas_used
294
)
295
- blob_gas = GAS_PER_BLOB * parent_header.target_blobs_per_block
296
- if parent_blob_gas < blob_gas:
+ target_blob_gas = GAS_PER_BLOB * parent_header.target_blobs_per_block
+ if parent_blob_gas < target_blob_gas:
297
return U64(0)
298
else:
299
- return parent_blob_gas - blob_gas
+ return parent_blob_gas - target_blob_gas
300
301
302
def calculate_total_blob_gas(tx: Transaction) -> Uint:
0 commit comments