Skip to content

Commit 662f846

Browse files
committed
Rename variable
1 parent a956eb2 commit 662f846

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ethereum/prague/vm/gas.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,11 +292,11 @@ def calculate_excess_blob_gas(parent_header: Header) -> U64:
292292
parent_blob_gas = (
293293
parent_header.excess_blob_gas + parent_header.blob_gas_used
294294
)
295-
blob_gas = GAS_PER_BLOB * parent_header.target_blobs_per_block
296-
if parent_blob_gas < blob_gas:
295+
target_blob_gas = GAS_PER_BLOB * parent_header.target_blobs_per_block
296+
if parent_blob_gas < target_blob_gas:
297297
return U64(0)
298298
else:
299-
return parent_blob_gas - blob_gas
299+
return parent_blob_gas - target_blob_gas
300300

301301

302302
def calculate_total_blob_gas(tx: Transaction) -> Uint:

0 commit comments

Comments
 (0)