Skip to content

Commit

Permalink
docs: fix incorrect docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
danceratopz committed Jul 14, 2023
1 parent dbd3008 commit 9363e4b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/cancun/eip4844_blobs/spec.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Defines EIP-4844 spec constants and functions.
Defines EIP-4844 specification constants and functions.
"""
from dataclasses import dataclass
from enum import Enum, IntEnum
Expand Down Expand Up @@ -95,8 +95,8 @@ def fake_exponential(cls, factor: int, numerator: int, denominator: int) -> int:
@classmethod
def calc_excess_data_gas(cls, parent: BlockHeaderDataGasFields) -> int:
"""
Calculate the excess data gas for a block given the parent excess data gas
and the number of blobs in the block.
Calculate the excess data gas for a block given the excess data gas
and data gas used from the parent block header.
"""
if parent.excess_data_gas + parent.data_gas_used < cls.TARGET_DATA_GAS_PER_BLOCK:
return 0
Expand Down

0 comments on commit 9363e4b

Please sign in to comment.